1
0

hosts/monitoring-3: validate nixos hash versions

This commit is contained in:
2023-02-04 00:57:55 +01:00
parent 6082fb0744
commit 4fffc64c35
4 changed files with 54 additions and 4 deletions

View File

@@ -127,6 +127,28 @@ in {
relabelAddressToInstance
];
}
{
job_name = "nixos-validator";
scrape_interval = "1m";
static_configs = [
{
targets = nixosMonitoringTargets;
}
];
relabel_configs = [
{
source_labels = [ "__address__" ];
target_label = "__param_target";
regex = ''([\w-]+)\.mon\.clerie\.de\:\d+'';
replacement = "\${1}";
}
relabelAddressToInstance
{
target_label = "__address__";
replacement = "[::1]:9153";
}
];
}
{
job_name = "bird-exporter";
scrape_interval = "20s";