RARE/freeRouter - Link State IGP peers / reachability & neighbor count summary

Display link state IGP peer reachability and neighbor count metrics

RARE/freeRouter  - Link State IGP peers / reachability & neighbor count summary screenshot 1

scope:local to freeRouter node

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

  • Create hardware and software sensor
sensor lsigp4int
 path lsigp4int/peer/peer
 prefix freertr-lsigp4int
 prepend lsigp4_iface_
 command sho ipv4 ospf 1 interface
 name 0 proto="ospf1",ifc=
 key name lsigp4int/peer
 replace \. _
 column 1 name neighbors
 exit
sensor lsigp4peer
 path lsigp4peer/peer/peer
 prefix freertr-lsigp4peer
 prepend lsigp4_peers_
 command sho ipv4 ospf 1 topology 0 | inc reach
 name 0 proto="ospf1",node=
 key name lsigp4peer/peer
 replace \. _
 column 2 name reachable
 column 2 replace false 0
 column 2 replace true 1
 column 3 name neighbors
 exit
sensor lsigp4perf
 path lsigp4perf/peer/peer
 prefix freertr-lsigp4perf
 prepend lsigp4_perf_
 command sho ipv4 ospf 1 spf 0 | inc reachable|fill|calc|run
 key name lsigp4perf/peer
 labels proto="ospf1"
 skip 0
 column 1 name val
 exit
sensor lsigp6int
 path lsigp6int/peer/peer
 prefix freertr-lsigp6int
 prepend lsigp6_iface_
 command sho ipv6 ospf 1 interface
 name 0 proto="ospf1",ifc=
 key name lsigp6int/peer
 replace \. _
 column 1 name neighbors
 exit              
sensor lsigp6peer
 path lsigp6peer/peer/peer
 prefix freertr-lsigp6peer
 prepend lsigp6_peers_
 command sho ipv6 ospf 1 topology 0 | inc reach
 name 0 proto="ospf1",node=
 key name lsigp6peer/peer
 replace \. _
 replace \/ _
 column 2 name reachable
 column 2 replace false 0
 column 2 replace true 1
 column 3 name neighbors
 exit
sensor lsigp6perf
 path lsigp6perf/peer/peer
 prefix freertr-lsigp6perf
 prepend lsigp6_perf_
 command sho ipv6 ospf 1 spf 0 | inc reachable|fill|calc|run
 key name lsigp6perf/peer
 labels proto="ospf1"
 skip 0
 column 1 name val
 exit
  • freeRtr server Prometheus agent configuration
server prometheus pr
 sensor lsigp4int
 sensor lsigp4peer
 sensor lsigp4perf
 sensor lsigp6int
 sensor lsigp6peer
 sensor lsigp6perf
 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>

!test !test with grafana support team

Revisions
RevisionDescriptionCreated

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies