From 1a18788217612cb6e64935ae9fae15c59ded4243 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 18 Jun 2022 19:47:02 +0200 Subject: [PATCH] modules/monitoring: restart exporters slowly --- modules/monitoring/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/default.nix b/modules/monitoring/default.nix index 77da8db..adfa336 100644 --- a/modules/monitoring/default.nix +++ b/modules/monitoring/default.nix @@ -31,8 +31,14 @@ in }; }; - systemd.services.prometheus-node-exporter.after = [ "hyprspace.service" "sys-devices-virtual-net-hyprspace.device" ]; - systemd.services.prometheus-jitsi-exporter.after = [ "hyprspace.service" "sys-devices-virtual-net-hyprspace.device" ]; + systemd.services.prometheus-node-exporter = { + after = [ "hyprspace.service" "sys-devices-virtual-net-hyprspace.device" ]; + serviceConfig.RestartSec = "10s"; + }; + systemd.services.prometheus-jitsi-exporter = { + after = [ "hyprspace.service" "sys-devices-virtual-net-hyprspace.device" ]; + serviceConfig.RestartSec = "10s"; + }; systemd.services.promtail = { wantedBy = [ "multi-user.target" ];