mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/prometheus/nginx-exporter: fix args for 1.0
This commit is contained in:
parent
958adeedd3
commit
faff9de754
2 changed files with 4 additions and 3 deletions
|
@ -43,14 +43,14 @@ in
|
|||
};
|
||||
};
|
||||
serviceOpts = mkMerge ([{
|
||||
environment.CONST_LABELS = concatStringsSep "," cfg.constLabels;
|
||||
serviceConfig = {
|
||||
ExecStart = ''
|
||||
${pkgs.prometheus-nginx-exporter}/bin/nginx-prometheus-exporter \
|
||||
--nginx.scrape-uri='${cfg.scrapeUri}' \
|
||||
--nginx.ssl-verify=${boolToString cfg.sslVerify} \
|
||||
--${lib.optionalString (!cfg.sslVerify) "no-"}nginx.ssl-verify \
|
||||
--web.listen-address=${cfg.listenAddress}:${toString cfg.port} \
|
||||
--web.telemetry-path=${cfg.telemetryPath} \
|
||||
--prometheus.const-labels=${concatStringsSep "," cfg.constLabels} \
|
||||
${concatStringsSep " \\\n " cfg.extraFlags}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue