diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-06 20:24:03 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-06 20:24:03 +0100 |
commit | 87d21f2e637614d8bc053b61c4fe601ff373edcb (patch) | |
tree | 0726e7c7f0f7a38047aa809a95140040e59c844a /hosts/vidhar | |
parent | 178fa5e0648b7bb4a1bce022404d99a02f231716 (diff) | |
download | nixos-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')
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 9 |
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 | } |