dns: add prometheus scrape target
This commit is contained in:
parent
7d097ff1d0
commit
a3a3502b70
@ -2,6 +2,7 @@
|
||||
|
||||
{
|
||||
networking.firewall.interfaces.ens18.allowedUDPPorts = [ 53 ];
|
||||
networking.firewall.interfaces.ens18.allowedTCPPorts = [ 9253 9353];
|
||||
services.coredns = {
|
||||
enable = true;
|
||||
config = ''
|
||||
@ -21,9 +22,9 @@
|
||||
log
|
||||
prometheus 10.42.10.8:9353
|
||||
file /etc/zones/db.bula22.de
|
||||
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.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.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.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa.
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
@ -188,6 +188,18 @@ with lib;
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "dns";
|
||||
scrape_interval = "5s";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"dns.bula22.de:9253"
|
||||
"dns.bula22.de:9353"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
alertmanagers = [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user