diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-12-29 20:57:10 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-12-29 20:57:10 +0100 |
commit | 663f28bbabed1058336c1ef7bf22fd2f9492501c (patch) | |
tree | dd3027ab6f9ae061211ea4cf11e34c099d8ec92d | |
parent | eff300d09562b46d90747fe260c4d9a3b1339ca8 (diff) | |
download | nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.tar nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.tar.gz nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.tar.bz2 nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.tar.xz nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.zip |
...
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index ea185788..13eec1b1 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { config, lib, pkgs, ... }: | 1 | { config, lib, pkgs, utils, ... }: |
2 | 2 | ||
3 | with lib; | 3 | with lib; |
4 | 4 | ||
@@ -395,10 +395,13 @@ in { | |||
395 | systemd.services."prometheus-systemd-exporter" = let | 395 | systemd.services."prometheus-systemd-exporter" = let |
396 | cfg = config.services.prometheus.exporters.systemd; | 396 | cfg = config.services.prometheus.exporters.systemd; |
397 | in { | 397 | in { |
398 | serviceConfig.ExecStart = mkForce '' | 398 | serviceConfig = { |
399 | ${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter \ | 399 | ExecStart = mkForce "${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter ${utils.escapeSystemdExecArgs [ |
400 | --web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags} | 400 | "--web.listen-address" "${cfg.listenAddress}:${toString cfg.port}" |
401 | ''; | 401 | ] ++ cfg.extraFlags}"; |
402 | ReadWritePaths = ["/run/dbus/system_bus_socket"]; | ||
403 | BindReadOnlyPaths = ["/proc"]; | ||
404 | }; | ||
402 | }; | 405 | }; |
403 | 406 | ||
404 | services.nginx = { | 407 | services.nginx = { |