Add switch_snmp job for prometheus

This commit is contained in:
jeltz 2021-03-06 01:57:32 +01:00
parent 763cc2eb51
commit 8abca7916f

View file

@ -81,6 +81,21 @@ scrape_configs:
- target_label: __address__
replacement: 127.0.0.1:9116
- job_name: switch_snmp
file_sd_configs:
- files:
- "/etc/prometheus/targets_switch_snmp.json"
metrics_path: /snmp
params:
module: [procurve_switch]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9116
- job_name: docker
file_sd_configs:
- files: