RARE/freeRouter - interfaces packets

Display interface packet metrics

RARE/freeRouter - interfaces packets screenshot 1

scope:local to freeRouter node

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

  • Create hardware and software sensor
sensor ifaces-hwp
path interfaces-hwp/interface/counter
prefix freertr-ifaces
key name interfaces-hwp/interface
command sho inter hwsumm
prepend iface_hw_byte_
name 0 ifc=
replace \. _
column 1 name st
column 1 replace admin -1
column 1 replace down 0
column 1 replace up 1
column 2 name tx
column 3 name rx
column 4 name dr
.
exit

sensor ifaces-swp
path interfaces-swp/interface/counter
prefix freertr-ifaces
key name interfaces-swp/interface
command sho inter swsumm
prepend iface_sw_byte_
name 0 ifc=
replace \. _
column 1 name st
column 1 replace admin -1
column 1 replace down 0
column 1 replace up 1
column 2 name tx
column 3 name rx
column 4 name dr
.
exit
  • freeRtr server Prometheus agent configuration
server prometheus pr
 sensor ifaces-hwp
 sensor ifaces-swp
 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