RARE/freeRouter - BGP peer learned / advertised
Display BGP peer learned and advertised prefix metrics
scope:local
to freeRouter node
freeRouter Prometheus configuration: (copy & paste in freeRouter CLI)
- Create hardware and software sensor
sensor bgp4peer
path bgp4/peer/peer
prefix freertr-bgp4peer
prepend bgp4_peer_
command sho ipv4 bgp 1 summ
name 0 peer=
key name bgp4/peer
replace \. _
column 2 name state
column 2 replace false 0
column 2 replace true 1
column 3 name learn
column 4 name advert
exit
sensor bgp4perf
path bgp4/perf/perf
prefix freertr-bgp4perf
prepend bgp4_perf_
command sho ipv4 bgp 1 best | exc last
key name bgp4/perf
replace \s _
column 1 name val
exit
sensor bgp6peer
path bgp6/peer/peer
prefix freertr-bgp6peer
prepend bgp6_peer_
command sho ipv6 bgp 1 summ
name 0 peer=
key name bgp6/peer
replace \: _
column 2 name state
column 2 replace false 0
column 2 replace true 1
column 3 name advert
exit
sensor bgp6perf
path bgp6/perf/perf
prefix freertr-bgp6perf
prepend bgp6_perf_
command sho ipv6 bgp 1 best | exc last
key name bgp6/perf
replace \s _
column 1 name val
exit
- freeRtr server Prometheus agent configuration
server prometheus pr
sensor bgp4peer
sensor bgp4perf
sensor bgp6peer
sensor bgp6perf
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 |