diff options
Diffstat (limited to 'hosts/vidhar/prometheus')
-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 | } |