Add switch_snmp job for prometheus
This commit is contained in:
parent
763cc2eb51
commit
8abca7916f
1 changed files with 15 additions and 0 deletions
|
@ -81,6 +81,21 @@ scrape_configs:
|
||||||
- target_label: __address__
|
- target_label: __address__
|
||||||
replacement: 127.0.0.1:9116
|
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
|
- job_name: docker
|
||||||
file_sd_configs:
|
file_sd_configs:
|
||||||
- files:
|
- files:
|
||||||
|
|
Loading…
Reference in a new issue