Compare commits

...

1 Commits

Author SHA1 Message Date
Marek Mahut
4d4a12c0fd prometheus-nginx-exporter: not a boolean option 2021-11-19 18:50:56 +01:00

View File

@@ -47,10 +47,10 @@ in
ExecStart = ''
${pkgs.prometheus-nginx-exporter}/bin/nginx-prometheus-exporter \
--nginx.scrape-uri '${cfg.scrapeUri}' \
--nginx.ssl-verify ${boolToString cfg.sslVerify} \
${if cfg.sslVerify then "--nginx.ssl-verify" else ""} \
--web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
--web.telemetry-path ${cfg.telemetryPath} \
--prometheus.const-labels ${concatStringsSep "," cfg.constLabels} \
${if cfg.constLabels == [] then "" else "--prometheus.const-labels " (concatStringsSep "," cfg.constLabels)} \
${concatStringsSep " \\\n " cfg.extraFlags}
'';
};