1
0

dns: add prometheus scrape target

This commit is contained in:
Garionion 2022-07-16 19:34:10 +02:00
parent 7d097ff1d0
commit a3a3502b70
2 changed files with 16 additions and 3 deletions

View File

@ -2,6 +2,7 @@
{ {
networking.firewall.interfaces.ens18.allowedUDPPorts = [ 53 ]; networking.firewall.interfaces.ens18.allowedUDPPorts = [ 53 ];
networking.firewall.interfaces.ens18.allowedTCPPorts = [ 9253 9353];
services.coredns = { services.coredns = {
enable = true; enable = true;
config = '' config = ''
@ -21,9 +22,9 @@
log log
prometheus 10.42.10.8:9353 prometheus 10.42.10.8:9353
file /etc/zones/db.bula22.de file /etc/zones/db.bula22.de
file /etc/zones/db.42.10.in-addr.arpa. #file /etc/zones/db.42.10.in-addr.arpa.
file /etc/zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa. #file /etc/zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa.
file /etc/zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa. #file /etc/zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa.
} }
''; '';
}; };

View File

@ -188,6 +188,18 @@ with lib;
} }
]; ];
} }
{
job_name = "dns";
scrape_interval = "5s";
static_configs = [
{
targets = [
"dns.bula22.de:9253"
"dns.bula22.de:9353"
];
}
];
}
]; ];
alertmanagers = [ alertmanagers = [
{ {