RARE/freeRouter - BMP metrics

Display BMP metrics

RARE/freeRouter - BMP metrics screenshot 1

scope:local to freeRouter node

freeRouter Prometheus configuration: (copy & paste in freeRouter CLI)

  • Create hardware and software sensor
sensor bmp
path bmp/peer/peer
prefix freertr-bmp
key name bmp/peer
command sho bmp bmp
prepend bmp_
name 0 from=
addname 1 * rpeer=
replace \. _
replace \: _
column 2 name asn
column 3 name state
column 3 replace false 0
column 3 replace true 1
column 4 name flaps
.
exit

sensor bmp-rtr1vh
path bmp-rtr1vh/bmp-rtr1vh
prefix freertr-bmp-nodesum
key name bmp/bmp-rtr1vh
prepend bmp_nodesum
command sho bmp bmp 195.111.97.108 | include rep\s|\sin|\sout
name 0 data=
labels node="rtr1vh"
replace \s _
column 1 name val
.
exit
  • freeRtr server Prometheus agent configuration
server prometheus pr
 sensor bmp
 sensor bmp-rtr1vh
 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>
Revisions
RevisionDescriptionCreated

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies