about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus/exporters/json.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-03-16 14:34:03 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2020-03-16 14:34:03 -0400
commit67b0ddf3f30d975bd41bc2ac1cc871436ed1af0e (patch)
treeeddc87a600bfd5cf9f6f6ff15f8e735664eae1e1 /nixos/modules/services/monitoring/prometheus/exporters/json.nix
parente9c2957c1465838c27c7a67e56a6ade95033eefd (diff)
parentb8cff61c330400e39dbac22b8993fe58fb35ec13 (diff)
downloadnixlib-67b0ddf3f30d975bd41bc2ac1cc871436ed1af0e.tar
nixlib-67b0ddf3f30d975bd41bc2ac1cc871436ed1af0e.tar.gz
nixlib-67b0ddf3f30d975bd41bc2ac1cc871436ed1af0e.tar.bz2
nixlib-67b0ddf3f30d975bd41bc2ac1cc871436ed1af0e.tar.lz
nixlib-67b0ddf3f30d975bd41bc2ac1cc871436ed1af0e.tar.xz
nixlib-67b0ddf3f30d975bd41bc2ac1cc871436ed1af0e.tar.zst
nixlib-67b0ddf3f30d975bd41bc2ac1cc871436ed1af0e.zip
Merge remote-tracking branch 'origin/staging' into mb-cross-fixes-march-2020
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters/json.nix')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/json.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/json.nix b/nixos/modules/services/monitoring/prometheus/exporters/json.nix
index 82a55bafc982..bd0026b55f72 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/json.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/json.nix
@@ -27,7 +27,7 @@ in
       ExecStart = ''
         ${pkgs.prometheus-json-exporter}/bin/prometheus-json-exporter \
           --port ${toString cfg.port} \
-          ${cfg.url} ${cfg.configFile} \
+          ${cfg.url} ${escapeShellArg cfg.configFile} \
           ${concatStringsSep " \\\n  " cfg.extraFlags}
       '';
     };