1
0
Fork 0

Merge branch 'essendrop-metrics' of Drift/pvv-nixos-config into main

This commit is contained in:
Felix Albrigtsen 2023-01-23 14:16:46 +01:00 committed by Gogs
commit bef9bddca3
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"
];
}
];