summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus/exporters/snmp.nix
diff options
context:
space:
mode:
authorAndrew Childs <lorne@cons.org.nz>2018-10-07 11:35:55 +0900
committerAndrew Childs <lorne@cons.org.nz>2018-10-07 11:35:55 +0900
commitc477d6658c47fcd62b897819d9ae1aa535071ad0 (patch)
tree15b8f48dbb15fb17b503645fb43f1cf53db007ce /nixos/modules/services/monitoring/prometheus/exporters/snmp.nix
parent839b76ae216e9f5dd6ab26926b9fa4a68fe98cb3 (diff)
downloadnixpkgs-c477d6658c47fcd62b897819d9ae1aa535071ad0.tar
nixpkgs-c477d6658c47fcd62b897819d9ae1aa535071ad0.tar.gz
nixpkgs-c477d6658c47fcd62b897819d9ae1aa535071ad0.tar.bz2
nixpkgs-c477d6658c47fcd62b897819d9ae1aa535071ad0.tar.lz
nixpkgs-c477d6658c47fcd62b897819d9ae1aa535071ad0.tar.xz
nixpkgs-c477d6658c47fcd62b897819d9ae1aa535071ad0.tar.zst
nixpkgs-c477d6658c47fcd62b897819d9ae1aa535071ad0.zip
nixos/prometheus-snmp-exporter: fix command line argument format
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters/snmp.nix')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/snmp.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/snmp.nix b/nixos/modules/services/monitoring/prometheus/exporters/snmp.nix
index 404cd0a1896..0d919412432 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/snmp.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/snmp.nix
@@ -60,10 +60,10 @@ in
       DynamicUser = true;
       ExecStart = ''
         ${pkgs.prometheus-snmp-exporter.bin}/bin/snmp_exporter \
-          -config.file ${configFile} \
-          -log.format ${cfg.logFormat} \
-          -log.level ${cfg.logLevel} \
-          -web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
+          --config.file=${configFile} \
+          --log.format=${cfg.logFormat} \
+          --log.level=${cfg.logLevel} \
+          --web.listen-address=${cfg.listenAddress}:${toString cfg.port} \
           ${concatStringsSep " \\\n  " cfg.extraFlags}
       '';
     };