Merge pull request #271835 from undefined-moe/patch-2
prometheus-mongodb-exporter: fix service ExecStart
This commit is contained in:
commit
fba68401fb
1 changed files with 5 additions and 5 deletions
|
@ -55,12 +55,12 @@ in
|
|||
RuntimeDirectory = "prometheus-mongodb-exporter";
|
||||
ExecStart = ''
|
||||
${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} \
|
||||
--collector.collstats=${concatStringsSep "," cfg.collStats} \
|
||||
--collector.indexstats=${concatStringsSep "," cfg.indexStats} \
|
||||
--web.listen-address=${cfg.listenAddress}:${toString cfg.port} \
|
||||
--web.telemetry-path=${cfg.telemetryPath} \
|
||||
${optionalString (length cfg.collStats > 0) "--mongodb.collstats-colls=${concatStringsSep "," cfg.collStats}"} \
|
||||
${optionalString (length cfg.indexStats > 0) "--mongodb.indexstats-colls=${concatStringsSep "," cfg.indexStats}"} \
|
||||
--web.listen-address="${cfg.listenAddress}:${toString cfg.port}" \
|
||||
--web.telemetry-path="${cfg.telemetryPath}" \
|
||||
${escapeShellArgs cfg.extraFlags}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue