summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus/exporters
diff options
context:
space:
mode:
authorJakub Sokołowski <jakub@status.im>2023-04-12 23:04:50 +0200
committerJakub Sokołowski <jakub@status.im>2023-04-12 23:56:32 +0200
commit3c61665b7f5c8520706e445201b1a6509eb09997 (patch)
tree15a65eaddea3138d084f1922cb8b79e0910a1cbb /nixos/modules/services/monitoring/prometheus/exporters
parent097f7df150059147a91b8f6bcf0033004fbc8f12 (diff)
downloadnixpkgs-3c61665b7f5c8520706e445201b1a6509eb09997.tar
nixpkgs-3c61665b7f5c8520706e445201b1a6509eb09997.tar.gz
nixpkgs-3c61665b7f5c8520706e445201b1a6509eb09997.tar.bz2
nixpkgs-3c61665b7f5c8520706e445201b1a6509eb09997.tar.lz
nixpkgs-3c61665b7f5c8520706e445201b1a6509eb09997.tar.xz
nixpkgs-3c61665b7f5c8520706e445201b1a6509eb09997.tar.zst
nixpkgs-3c61665b7f5c8520706e445201b1a6509eb09997.zip
nixos/prometheus-smartctl-exporter: support extraFlags
Seems to be ignored currently. Useful for `-verbose` flag.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix b/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix
index 0c5648c1414..f80aeae9c6b 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/smartctl.nix
@@ -9,7 +9,7 @@ let
     "--smartctl.path=\"${pkgs.smartmontools}/bin/smartctl\" "
     "--smartctl.interval=\"${cfg.maxInterval}\" "
     "${concatMapStringsSep " " (device: "--smartctl.device=${device}") cfg.devices}"
-  ];
+  ] ++ cfg.extraFlags;
 in {
   port = 9633;