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:
Franz Pletz 2017-02-15 06:34:20 +01:00
parent a73afa89b4
commit 188526da3d
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -54,6 +54,7 @@ in {
Restart = "always";
PrivateTmp = true;
WorkingDirectory = /tmp;
AmbientCapabilities = [ "CAP_NET_RAW" ]; # for ping probes
ExecStart = ''
${pkgs.prometheus-blackbox-exporter}/bin/blackbox_exporter \
-web.listen-address :${toString cfg.port} \