Add node and gogs metrics collection to prometheus

This commit is contained in:
Felix Albrigtsen 2023-01-23 13:12:46 +01:00
parent a78f120a65
commit b4e74a3959
3 changed files with 19 additions and 1 deletions

View File

@ -3,8 +3,9 @@
./node.nix
./matrix-synapse.nix
./postgres.nix
./gogs.nix
];
services.prometheus = {
enable = true;
listenAddress = "127.0.0.1";

View File

@ -0,0 +1,16 @@
{ config, ... }: let
cfg = config.services.prometheus;
in {
services.prometheus.scrapeConfigs = [{
job_name = "git-gogs";
scheme = "https";
metrics_path = "/-/metrics";
static_configs = [
{
targets = [
"essendrop.pvv.ntnu.no:443"
];
}
];
}];
}

View File

@ -13,6 +13,7 @@ in {
"hildring.pvv.ntnu.no:9100"
"bicep.pvv.ntnu.no:9100"
"jokum.pvv.ntnu.no:9100"
"essendrop.pvv.ntnu.no:9100"
];
}
];