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