1
0

Add bird to monitoring

This commit is contained in:
2022-03-22 12:16:28 +01:00
parent 3ff361db44
commit 588db80877
9 changed files with 29 additions and 0 deletions

View File

@@ -23,6 +23,12 @@ let
"${host.config.networking.hostName}.mon.clerie.de:9100")
monitoringHosts;
birdMonitoringTargets = mapAttrsToList (name: host:
"${host.config.networking.hostName}.mon.clerie.de:9324")
(filterAttrs (name: host:
attrByPath ["clerie" "monitoring" "bird"] false host.config)
monitoringHosts);
in {
imports =
[
@@ -137,6 +143,15 @@ in {
}
];
}
{
job_name = "bird-exporter";
scrape_interval = "20s";
static_configs = [
{
targets = birdMonitoringTargets;
}
];
}
{
job_name = "zimmer-temp";
scrape_interval = "20s";