diff options
Diffstat (limited to 'modules/monitoring.nix')
-rw-r--r-- | modules/monitoring.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/monitoring.nix b/modules/monitoring.nix index a4ead4b..65e292d 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -31,6 +31,11 @@ in type = lib.types.int; default = aliases.services.prometheus-snmp-exporter.port; }; + prometheus-pms7003-exporter = lib.mkOption { + type = lib.types.str; + default = with aliases.services.prometheus-pms7003-exporter; + "${host}:${toString port}"; + }; snmp-targets = lib.mkOption { type = lib.types.listOf lib.types.str; default = [ aliases.ip.ap2 ]; @@ -80,6 +85,12 @@ in ]; } { + job_name = "pms7003"; + static_configs = [ + { targets = ["${cfg.prometheus-pms7003-exporter}"]; } + ]; + } + { job_name = "snmp"; metrics_path = "/snmp"; params = { module = [ "cisco_if_mib" ]; }; |