Add `Prometheus` config to scrape Router.
This commit is contained in:
parent
eb9b904f4f
commit
f9f795e234
|
@ -81,6 +81,21 @@ scrape_configs:
|
||||||
- target_label: __address__
|
- target_label: __address__
|
||||||
replacement: 127.0.0.1:9116 # The SNMP exporter's real hostname:port.
|
replacement: 127.0.0.1:9116 # The SNMP exporter's real hostname:port.
|
||||||
|
|
||||||
|
- job_name: 'vyos'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- 192.168.10.1 # SNMP device.
|
||||||
|
metrics_path: /snmp
|
||||||
|
params:
|
||||||
|
module: [if_mib]
|
||||||
|
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 # The SNMP exporter's real hostname:port.
|
||||||
|
|
||||||
alerting:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
- static_configs:
|
- static_configs:
|
||||||
|
|
Loading…
Reference in New Issue