nixos/prometheus-libvirt-exporter: fix systemd socket restrictions
Allow AF_UNIX, AF_INET, and AF_INET6 address families so the exporter can connect to the libvirt socket and serve HTTP metrics.
This commit is contained in:
@@ -24,6 +24,11 @@ in
|
||||
--web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
|
||||
--libvirt.uri ${cfg.libvirtUri} ${lib.concatStringsSep " " cfg.extraFlags}
|
||||
'';
|
||||
RestrictAddressFamilies = [
|
||||
"AF_UNIX"
|
||||
"AF_INET"
|
||||
"AF_INET6"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user