Add `Prometheus` config to scrape Router.

This commit is contained in:
Kazuhiro MUSASHI 2020-10-24 13:15:03 +09:00
parent eb9b904f4f
commit f9f795e234
1 changed files with 15 additions and 0 deletions

View File

@ -81,6 +81,21 @@ scrape_configs:
- target_label: __address__
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:
alertmanagers:
- static_configs: