summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus/exporters/node.nix
diff options
context:
space:
mode:
authorIvan Kozik <ivan@ludios.org>2019-06-20 21:04:36 +0000
committerBenjamin Staffin <benley@gmail.com>2019-06-20 17:04:36 -0400
commit41c6d7adfcad4ed4fc6f22140ab6c4285348d89c (patch)
tree4997ef0f506791b5e4874337c3ffefcc69c407d2 /nixos/modules/services/monitoring/prometheus/exporters/node.nix
parentafdcc40a44d58b1a3886941a94e6274a0db67934 (diff)
downloadnixpkgs-41c6d7adfcad4ed4fc6f22140ab6c4285348d89c.tar
nixpkgs-41c6d7adfcad4ed4fc6f22140ab6c4285348d89c.tar.gz
nixpkgs-41c6d7adfcad4ed4fc6f22140ab6c4285348d89c.tar.bz2
nixpkgs-41c6d7adfcad4ed4fc6f22140ab6c4285348d89c.tar.lz
nixpkgs-41c6d7adfcad4ed4fc6f22140ab6c4285348d89c.tar.xz
nixpkgs-41c6d7adfcad4ed4fc6f22140ab6c4285348d89c.tar.zst
nixpkgs-41c6d7adfcad4ed4fc6f22140ab6c4285348d89c.zip
nixos/prometheus-node-exporter: fix systemd unit for systemd 242 (#63540)
Avoid having a backslash at the end of ExecStart=.

See https://github.com/NixOS/nixpkgs/issues/63533 for details
about the change to systemd's unit parser.

Fixes #63383.
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters/node.nix')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/node.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/node.nix b/nixos/modules/services/monitoring/prometheus/exporters/node.nix
index ee7bf39f199..8c4128f9b63 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/node.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/node.nix
@@ -32,8 +32,7 @@ in
         ${pkgs.prometheus-node-exporter}/bin/node_exporter \
           ${concatMapStringsSep " " (x: "--collector." + x) cfg.enabledCollectors} \
           ${concatMapStringsSep " " (x: "--no-collector." + x) cfg.disabledCollectors} \
-          --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
-          ${concatStringsSep " \\\n  " cfg.extraFlags}
+          --web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags}
       '';
     };
   };