prometheus.blackboxExporter service: add CAP_NET_RAW
The blackbox-exporter for prometheus needs CAP_NET_RAW for sending icmp probes.
This commit is contained in:
parent
a73afa89b4
commit
188526da3d
@ -54,6 +54,7 @@ in {
|
|||||||
Restart = "always";
|
Restart = "always";
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
WorkingDirectory = /tmp;
|
WorkingDirectory = /tmp;
|
||||||
|
AmbientCapabilities = [ "CAP_NET_RAW" ]; # for ping probes
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.prometheus-blackbox-exporter}/bin/blackbox_exporter \
|
${pkgs.prometheus-blackbox-exporter}/bin/blackbox_exporter \
|
||||||
-web.listen-address :${toString cfg.port} \
|
-web.listen-address :${toString cfg.port} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user