valkyrie: Enable unbound prometheus exporter

This commit is contained in:
Erwin Boskma 2024-02-28 22:49:50 +01:00
parent 5f866a8b98
commit e04fb83881
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -1,5 +1,6 @@
{
services.unbound = {
services = {
unbound = {
enable = true;
localControlSocketPath = "/run/unbound/unbound.ctl";
settings = {
@ -52,7 +53,7 @@
num-threads = 2;
# 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
private-address = [
@ -66,4 +67,17 @@
};
};
};
prometheus.exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
};
unbound = {
enable = true;
unbound.host = "unix:///run/unbound/unbound.ctl";
};
};
};
}