diff options
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 61c5b5de..cd32b4e9 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix | |||
@@ -288,8 +288,12 @@ in { | |||
288 | isSystemUser = true; | 288 | isSystemUser = true; |
289 | group = config.services.unbound.group; | 289 | group = config.services.unbound.group; |
290 | }; | 290 | }; |
291 | systemd.services."prometheus-unbound-exporter".serviceConfig = { | 291 | systemd.services."prometheus-unbound-exporter" = { |
292 | DynamicUser = false; | 292 | serviceConfig = { |
293 | DynamicUser = false; | ||
294 | Restart = lib.mkForce "always"; | ||
295 | RestartSec = "5"; | ||
296 | }; | ||
293 | }; | 297 | }; |
294 | 298 | ||
295 | systemd.services."prometheus-zte-exporter@dsl01.mgmt.yggdrasil" = { | 299 | systemd.services."prometheus-zte-exporter@dsl01.mgmt.yggdrasil" = { |
@@ -417,12 +421,5 @@ in { | |||
417 | systemd.services.nginx.serviceConfig.LoadCredential = [ | 421 | systemd.services.nginx.serviceConfig.LoadCredential = [ |
418 | "prometheus.key:${config.sops.secrets."prometheus.key".path}" | 422 | "prometheus.key:${config.sops.secrets."prometheus.key".path}" |
419 | ]; | 423 | ]; |
420 | |||
421 | systemd.services."prometheus-unbound-exporter" = { | ||
422 | serviceConfig = { | ||
423 | Restart = lib.mkForce "always"; | ||
424 | RestartSec = "5"; | ||
425 | }; | ||
426 | }; | ||
427 | }; | 424 | }; |
428 | } | 425 | } |