summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorWilliButz <wbutz@cyberfnord.de>2021-01-17 12:15:40 +0100
committerWilliButz <wbutz@cyberfnord.de>2021-01-17 15:25:18 +0100
commit254b510ce71414519b7b0c9340ac011581d2addd (patch)
treec71aaadc5e2d048e4cabb9c9ea1f8b7911626637 /nixos/modules
parent1c224b957ff3881d6bf6cc6ea8c9f75a9016613d (diff)
nixos/promtheus-nextcloud-exporter: update module and test
Use new command-line flags of release 0.3.0 and always answer with the expected XML in the VM test instead of using a test-specific fixed path. Co-authored-by: ajs124 <git@ajs124.de>
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/nextcloud.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/nextcloud.nix b/nixos/modules/services/monitoring/prometheus/exporters/nextcloud.nix
index aee6bd5e66ce..ce7125bf5a83 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/nextcloud.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/nextcloud.nix
@@ -46,11 +46,11 @@ in
DynamicUser = false;
ExecStart = ''
${pkgs.prometheus-nextcloud-exporter}/bin/nextcloud-exporter \
- -a ${cfg.listenAddress}:${toString cfg.port} \
- -u ${cfg.username} \
- -t ${cfg.timeout} \
- -l ${cfg.url} \
- -p ${escapeShellArg "@${cfg.passwordFile}"} \
+ --addr ${cfg.listenAddress}:${toString cfg.port} \
+ --username ${cfg.username} \
+ --timeout ${cfg.timeout} \
+ --server ${cfg.url} \
+ --password ${escapeShellArg "@${cfg.passwordFile}"} \
${concatStringsSep " \\\n " cfg.extraFlags}
'';
};