RARE/freeRouter - BFD states
Display BFP state metrics
scope:local
to freeRouter node
freeRouter Prometheus configuration: (copy & paste in freeRouter CLI)
- Create hardware and software sensor
sensor bfd4
path bfd4/peer/peer
prefix freertr-bfd4
key name bfd4/peer
command sho ipv4 bfd inet neighbor
prepend bfd4_
name 1 ip=
replace \. _
column 2 name state
column 2 replace down 0
column 2 replace init 1
column 2 replace shut -1
column 2 replace up 2
.
exit
sensor bfd6
path bfd6/peer/peer
prefix freertr-bfd6
key name bfd6/peer
command sho ipv6 bfd inet neighbor
prepend bfd6_
name 1 ip=
replace \: _
column 2 name state
column 2 replace down 0
column 2 replace init 1
column 2 replace shut -1
column 2 replace up 2
.
exit
- freeRtr server Prometheus agent configuration
server prometheus pr
sensor bfd4
sensor bfd6
vrf <PROMETHEUS_VRF>
exit
- Prometheus server configuration (sample config with 2 nodes)
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 30s
alerting:
alertmanagers:
- static_configs:
- targets: []
scheme: http
timeout: 10s
scrape_configs:
- job_name: router
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- <prometheus_agent_ip_1>:9001
labels:
node_name: <prometheus_agent_1_node_name>
- targets:
- <prometheus_agent_ip_2>:9001
labels:
node_name: <prometheus_agent_2_node_name>
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |