about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus/exporters
diff options
context:
space:
mode:
authorWilliButz <wbutz@cyberfnord.de>2018-10-08 16:28:35 +0200
committerWilliButz <wbutz@cyberfnord.de>2018-10-08 17:21:48 +0200
commit24320f4a9e398e03374d8dbca95d553850ac2ee4 (patch)
treef11125849fb7a7f8ced443f511e74cad784e6baa /nixos/modules/services/monitoring/prometheus/exporters
parentcefd0f7e86b27791ef75f9e506e8489c2b7476f0 (diff)
downloadnixlib-24320f4a9e398e03374d8dbca95d553850ac2ee4.tar
nixlib-24320f4a9e398e03374d8dbca95d553850ac2ee4.tar.gz
nixlib-24320f4a9e398e03374d8dbca95d553850ac2ee4.tar.bz2
nixlib-24320f4a9e398e03374d8dbca95d553850ac2ee4.tar.lz
nixlib-24320f4a9e398e03374d8dbca95d553850ac2ee4.tar.xz
nixlib-24320f4a9e398e03374d8dbca95d553850ac2ee4.tar.zst
nixlib-24320f4a9e398e03374d8dbca95d553850ac2ee4.zip
nixos/prometheus-varnish-exporter: avoid crash on restart
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/varnish.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix b/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix
index 8dbf2d735ab9..aaed76175b84 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/varnish.nix
@@ -69,6 +69,7 @@ in
     path = [ pkgs.varnish ];
     serviceConfig = {
       DynamicUser = true;
+      RestartSec = mkDefault 1;
       ExecStart = ''
         ${pkgs.prometheus-varnish-exporter}/bin/prometheus_varnish_exporter \
           --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \