diff --git a/host_vars/fyre.adm.crans.org.yml b/host_vars/fyre.adm.crans.org.yml index 0d75d169..f1c2e642 100644 --- a/host_vars/fyre.adm.crans.org.yml +++ b/host_vars/fyre.adm.crans.org.yml @@ -102,7 +102,7 @@ loc_prometheus: file: targets_bird.json targets: "{{ groups['bird'] | select('match', '^.*\\.adm\\.crans\\.org$') | list | sort }}" config: - - job_name: servers + - job_name: bird file_sd_configs: - files: - '/etc/prometheus/targets_bird.json' @@ -150,6 +150,29 @@ loc_prometheus: - replacement: '127.0.0.1:9116' target_label: __address__ + ups_snmp: + file: targets_ups_snmp.json + targets: + - excalibur.adm.crans.org + config: + - job_name: ups_snmp + file_sd_configs: + - files: + - '/etc/prometheus/targets_ups_snmp.json' + metrics_path: '/snmp' + params: + module: + - eatonups + relabel_configs: + - source_labels: + - __address__ + target_label: __param_target + - source_labels: + - __param_target + target_label: instance + - replacement: 127.0.0.1:9116 + target_label: __address__ + printer_snmp: file: targets_printer.json targets: ["printer.lp.crans.org"]