summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsqualus <squalus@squalus.net>2021-12-08 11:32:13 -0800
committersqualus <squalus@squalus.net>2021-12-08 11:32:13 -0800
commitc3ab9e6d409d5f481217d7f910838ecca2e15317 (patch)
tree2384b85eb0d5e6dc80d8fec95b4502446154619a /nixos
parent6166366a246b4fbe11cc1b5e214d2cf9894208ed (diff)
downloadnixpkgs-c3ab9e6d409d5f481217d7f910838ecca2e15317.tar
nixpkgs-c3ab9e6d409d5f481217d7f910838ecca2e15317.tar.gz
nixpkgs-c3ab9e6d409d5f481217d7f910838ecca2e15317.tar.bz2
nixpkgs-c3ab9e6d409d5f481217d7f910838ecca2e15317.tar.lz
nixpkgs-c3ab9e6d409d5f481217d7f910838ecca2e15317.tar.xz
nixpkgs-c3ab9e6d409d5f481217d7f910838ecca2e15317.tar.zst
nixpkgs-c3ab9e6d409d5f481217d7f910838ecca2e15317.zip
nixos/prometheus-nginx-exporter: fix argument syntax
Arguments were being ignored because the program expects an equals sign
to separate the argument name from the value.

Documented in https://github.com/nginxinc/nginx-prometheus-exporter/issues/153

Fixes #107541
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/nginx.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/nginx.nix b/nixos/modules/services/monitoring/prometheus/exporters/nginx.nix
index 3cdd7866bd4..6f69f5919d1 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/nginx.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/nginx.nix
@@ -46,11 +46,11 @@ in
     serviceConfig = {
       ExecStart = ''
         ${pkgs.prometheus-nginx-exporter}/bin/nginx-prometheus-exporter \
-          --nginx.scrape-uri '${cfg.scrapeUri}' \
-          --nginx.ssl-verify ${boolToString cfg.sslVerify} \
-          --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
-          --web.telemetry-path ${cfg.telemetryPath} \
-          --prometheus.const-labels ${concatStringsSep "," cfg.constLabels} \
+          --nginx.scrape-uri='${cfg.scrapeUri}' \
+          --nginx.ssl-verify=${boolToString cfg.sslVerify} \
+          --web.listen-address=${cfg.listenAddress}:${toString cfg.port} \
+          --web.telemetry-path=${cfg.telemetryPath} \
+          --prometheus.const-labels=${concatStringsSep "," cfg.constLabels} \
           ${concatStringsSep " \\\n  " cfg.extraFlags}
       '';
     };