RARE/freeRouter - Routed traffic packets

Display routed traffic packet metric

RARE/freeRouter - Routed traffic packets screenshot 1

scope:local to freeRouter node

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

  • Create hardware and software sensor
sensor routraf4
path routraf4/peer/peer
prefix freertr-routraf4
key name routraf4/peer
command sho ipv4 counter inet
prepend routed_traffic4_
name 0 prefix=
replace \. _
replace \/ _
column 1 name pack
column 1 split + typ="sw" typ="hw"
column 2 name byte
column 2 split + typ="sw" typ="hw"
.
exit

sensor routraf6
path routraf6/peer/peer
prefix freertr-routraf6
key name routraf6/peer
command sho ipv6 counter inet
prepend routed_traffic6_
name 0 prefix=
replace \. _
replace \/ _
column 1 name pack
column 1 split + typ="sw" typ="hw"
column 2 name byte
column 2 split + typ="sw" typ="hw"
.
exit
  • freeRtr server Prometheus agent configuration
server prometheus pr
 sensor routraf4
 sensor routraf6
 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