mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
Merge pull request #271835 from undefined-moe/patch-2
prometheus-mongodb-exporter: fix service ExecStart
This commit is contained in:
commit
fba68401fb
|
@ -55,12 +55,12 @@ in
|
||||||
RuntimeDirectory = "prometheus-mongodb-exporter";
|
RuntimeDirectory = "prometheus-mongodb-exporter";
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${getExe pkgs.prometheus-mongodb-exporter} \
|
${getExe pkgs.prometheus-mongodb-exporter} \
|
||||||
--mongodb.uri=${cfg.uri}
|
--mongodb.uri="${cfg.uri}" \
|
||||||
${if cfg.collectAll then "--collect-all" else concatMapStringsSep " " (x: "--collect.${x}") cfg.collector} \
|
${if cfg.collectAll then "--collect-all" else concatMapStringsSep " " (x: "--collect.${x}") cfg.collector} \
|
||||||
--collector.collstats=${concatStringsSep "," cfg.collStats} \
|
${optionalString (length cfg.collStats > 0) "--mongodb.collstats-colls=${concatStringsSep "," cfg.collStats}"} \
|
||||||
--collector.indexstats=${concatStringsSep "," cfg.indexStats} \
|
${optionalString (length cfg.indexStats > 0) "--mongodb.indexstats-colls=${concatStringsSep "," cfg.indexStats}"} \
|
||||||
--web.listen-address=${cfg.listenAddress}:${toString cfg.port} \
|
--web.listen-address="${cfg.listenAddress}:${toString cfg.port}" \
|
||||||
--web.telemetry-path=${cfg.telemetryPath} \
|
--web.telemetry-path="${cfg.telemetryPath}" \
|
||||||
${escapeShellArgs cfg.extraFlags}
|
${escapeShellArgs cfg.extraFlags}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue