aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix')
-rw-r--r--nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix18
1 files changed, 8 insertions, 10 deletions
diff --git a/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix b/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix
index f9ad1457fc8..cc71451bf20 100644
--- a/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix
+++ b/nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix
@@ -21,6 +21,7 @@ let
# `serviceOpts.script` or `serviceOpts.serviceConfig.ExecStart`
exporterOpts = genAttrs [
+ "apcupsd"
"bind"
"blackbox"
"collectd"
@@ -28,19 +29,24 @@ let
"dovecot"
"fritzbox"
"json"
+ "keylight"
+ "lnd"
"mail"
"mikrotik"
"minio"
+ "modemmanager"
"nextcloud"
"nginx"
"node"
"postfix"
"postgres"
+ "redis"
"rspamd"
"snmp"
"surfboard"
"tor"
"unifi"
+ "unifi-poller"
"varnish"
"wireguard"
] (name:
@@ -79,7 +85,8 @@ let
};
firewallFilter = mkOption {
type = types.str;
- default = "-p tcp -m tcp --dport ${toString port}";
+ default = "-p tcp -m tcp --dport ${toString cfg.${name}.port}";
+ defaultText = "-p tcp -m tcp --dport ${toString port}";
example = literalExample ''
"-i eth0 -p tcp -m tcp --dport ${toString port}"
'';
@@ -168,15 +175,6 @@ in
(opt: lib.mkRemovedOptionModule [ "services" "prometheus" "${opt}" ] ''
The prometheus exporters are now configured using `services.prometheus.exporters'.
See the 18.03 release notes for more information.
- '' ))
-
- ++ (lib.forEach [ "enable" "substitutions" "preset" ]
- (opt: lib.mkRemovedOptionModule [ "fonts" "fontconfig" "ultimate" "${opt}" ] ''
- The fonts.fontconfig.ultimate module and configuration is obsolete.
- The repository has since been archived and activity has ceased.
- https://github.com/bohoomil/fontconfig-ultimate/issues/171.
- No action should be needed for font configuration, as the fonts.fontconfig
- module is already used by default.
'' ));
options.services.prometheus.exporters = mkOption {