diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2021-11-12 19:34:07 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2021-11-12 19:34:07 -0500 |
commit | 6e73fb265f4bb992a3a3519b6be63159a7423645 (patch) | |
tree | cc231fba89d510904f8b23fe79c346b5acdafbeb /modules | |
parent | 1303b7560e3c47aa081851d6b664078de349be01 (diff) |
Add pms7003 exporter
Diffstat (limited to 'modules')
-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" ]; }; |