fuuko: Add dnsmasq prometheus exporter
This commit is contained in:
parent
6f20d6300d
commit
5c4284d68c
|
@ -24,6 +24,12 @@
|
|||
];
|
||||
};
|
||||
|
||||
services.prometheus.exporters.dnsmasq = {
|
||||
enable = true;
|
||||
listenAddress = "127.0.0.1";
|
||||
leasesPath = "/var/lib/dnsmasq/dnsmasq.leases";
|
||||
};
|
||||
|
||||
services.stubby = {
|
||||
enable = true;
|
||||
listenAddresses = [
|
||||
|
|
|
@ -111,6 +111,14 @@ in
|
|||
replacement = "ci.sbruder.de";
|
||||
};
|
||||
}
|
||||
{
|
||||
job_name = "dnsmasq";
|
||||
static_configs = mkStaticTarget (with config.services.prometheus.exporters.dnsmasq; "${listenAddress}:${toString port}");
|
||||
relabel_configs = lib.singleton {
|
||||
target_label = "instance";
|
||||
replacement = "fuuko.home.sbruder.de";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
rules =
|
||||
|
|
Loading…
Reference in a new issue