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

@@ -448,6 +448,7 @@
enable = true;
id = "104";
pubkey = "sro9DUSMtVr5xV2o3GTgg+0vmLj+bRc8fN+3pIr6+HY=";
bird = true;
};
services.unbound = {

View File

@@ -310,6 +310,7 @@
enable = true;
id = "301";
pubkey = "kTuC3/rLr4Qb3C4oEn1ecB/vS78poxmu6/Id3Rc1VGY=";
bird = true;
};
system.stateVersion = "21.03";

View File

@@ -168,6 +168,7 @@
enable = true;
id = "305";
pubkey = "DRJ4FFqNCRgxzmD+k4WKVKJiKKTxTm5Uupcz04j1Ag8=";
bird = true;
};
system.stateVersion = "21.03";

View File

@@ -168,6 +168,7 @@
enable = true;
id = "306";
pubkey = "5+/S3Fj0HknkKgUTgtmDhS7MoHZ2Ygsi/+eij+Gnf34=";
bird = true;
};
system.stateVersion = "21.03";

View File

@@ -252,6 +252,7 @@
enable = true;
id = "101";
pubkey = "H9Pvx/BzwEMM7acT9mioT8zBD2Yn13L82EKKqdAfeGM=";
bird = true;
};
system.stateVersion = "21.03";

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";

View File

@@ -172,6 +172,7 @@
enable = true;
id = "103";
pubkey = "BHRfdK+HsoBXQHgLXotMnfPgfRrsVNHdSg19fvS2kg4=";
bird = true;
};
system.stateVersion = "21.03";

View File

@@ -172,6 +172,7 @@
enable = true;
id = "102";
pubkey = "+mJN+ustPo2ehP0wqajYs3nTdJ0SPuIDyiZQSHFIK3o=";
bird = true;
};
system.stateVersion = "21.03";