valkyrie: Enable unbound prometheus exporter
This commit is contained in:
parent
5f866a8b98
commit
e04fb83881
1 changed files with 66 additions and 52 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
services.unbound = {
|
services = {
|
||||||
|
unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
localControlSocketPath = "/run/unbound/unbound.ctl";
|
localControlSocketPath = "/run/unbound/unbound.ctl";
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -52,7 +53,7 @@
|
||||||
num-threads = 2;
|
num-threads = 2;
|
||||||
|
|
||||||
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
|
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
|
||||||
so-rcvbuf = "1m";
|
so-rcvbuf = "8m";
|
||||||
|
|
||||||
# Ensure privacy of local IP ranges
|
# Ensure privacy of local IP ranges
|
||||||
private-address = [
|
private-address = [
|
||||||
|
@ -66,4 +67,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prometheus.exporters = {
|
||||||
|
node = {
|
||||||
|
enable = true;
|
||||||
|
enabledCollectors = [ "systemd" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
unbound = {
|
||||||
|
enable = true;
|
||||||
|
unbound.host = "unix:///run/unbound/unbound.ctl";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue