[prometheus] ups-snmp was missing
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>ntpsec
parent
d935de80b9
commit
9e4d157743
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue