summaryrefslogtreecommitdiff
path: root/hosts/vidhar/prometheus
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-04-28 08:30:29 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-04-28 08:30:29 +0200
commitd8c32c88045496b55690406ba3876e0f3c48b0eb (patch)
tree0734a4e78ae0050f93db98edafc9cc0b3f0e0d70 /hosts/vidhar/prometheus
parentc7f46f97c1b42751b502bda36430119af50a1a45 (diff)
downloadnixos-d8c32c88045496b55690406ba3876e0f3c48b0eb.tar
nixos-d8c32c88045496b55690406ba3876e0f3c48b0eb.tar.gz
nixos-d8c32c88045496b55690406ba3876e0f3c48b0eb.tar.bz2
nixos-d8c32c88045496b55690406ba3876e0f3c48b0eb.tar.xz
nixos-d8c32c88045496b55690406ba3876e0f3c48b0eb.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/prometheus')
-rw-r--r--hosts/vidhar/prometheus/default.nix15
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}