forked from Drift/pvv-nixos-config
Merge branch 'essendrop-metrics' of Drift/pvv-nixos-config into main
This commit is contained in:
commit
bef9bddca3
@ -3,8 +3,9 @@
|
||||
./node.nix
|
||||
./matrix-synapse.nix
|
||||
./postgres.nix
|
||||
./gogs.nix
|
||||
];
|
||||
|
||||
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
listenAddress = "127.0.0.1";
|
||||
|
16
hosts/ildkule/services/metrics/prometheus/gogs.nix
Normal file
16
hosts/ildkule/services/metrics/prometheus/gogs.nix
Normal 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"
|
||||
];
|
||||
}
|
||||
];
|
||||
}];
|
||||
}
|
@ -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"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user