summaryrefslogtreecommitdiff
path: root/hosts/vidhar/prometheus
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-06 20:24:03 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-06 20:24:03 +0100
commit87d21f2e637614d8bc053b61c4fe601ff373edcb (patch)
tree0726e7c7f0f7a38047aa809a95140040e59c844a /hosts/vidhar/prometheus
parent178fa5e0648b7bb4a1bce022404d99a02f231716 (diff)
downloadnixos-87d21f2e637614d8bc053b61c4fe601ff373edcb.tar
nixos-87d21f2e637614d8bc053b61c4fe601ff373edcb.tar.gz
nixos-87d21f2e637614d8bc053b61c4fe601ff373edcb.tar.bz2
nixos-87d21f2e637614d8bc053b61c4fe601ff373edcb.tar.xz
nixos-87d21f2e637614d8bc053b61c4fe601ff373edcb.zip
vidhar: prometheus: systemd: ...
Diffstat (limited to 'hosts/vidhar/prometheus')
-rw-r--r--hosts/vidhar/prometheus/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index c38ea16c..3fd07bbe 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -270,5 +270,14 @@ in {
270 Environment = "NFT_HOSTNAME=localhost NFT_PORT=9901"; 270 Environment = "NFT_HOSTNAME=localhost NFT_PORT=9901";
271 }; 271 };
272 }; 272 };
273
274 systemd.services."prometheus-systemd-exporter" = let
275 cfg = config.services.prometheus.exporters.systemd;
276 in {
277 serviceConfig.ExecStart = mkForce ''
278 ${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter \
279 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags}
280 '';
281 };
273 }; 282 };
274} 283}