ildkule: restructure prometheus config

This commit is contained in:
2023-01-21 19:55:29 +01:00
parent ad75cb0c88
commit a7408b8800
6 changed files with 75 additions and 69 deletions

View File

@@ -0,0 +1,20 @@
{ config, ... }: let
cfg = config.services.prometheus;
in {
services.prometheus.scrapeConfigs = [{
job_name = "node";
static_configs = [
{
targets = [
"ildkule.pvv.ntnu.no:${toString cfg.exporters.node.port}"
"microbel.pvv.ntnu.no:9100"
"isvegg.pvv.ntnu.no:9100"
"knakelibrak.pvv.ntnu.no:9100"
"hildring.pvv.ntnu.no:9100"
"bicep.pvv.ntnu.no:9100"
"jokum.pvv.ntnu.no:9100"
];
}
];
}];
}