RARE/freeRouter - LDP summary
Display LDP summary metrics
scope:local
to freeRouter node
freeRouter Prometheus configuration: (copy & paste in freeRouter CLI)
- Create hardware and software sensor
sensor ldp4sum
path ldp4sum/peer/peer
prefix freertr-ldp4sum
key name ldp4sum/peer
command sho ipv4 ldp inet summary
prepend ldp4_
name 6 ip=
skip 2
replace \. _
column 0 name prefix_learn
column 1 name prefix_advert
column 2 name layer2_learn
column 3 name layer2_advert
column 4 name p2mp_learn
column 5 name p2mp_advert
.
exit
sensor ldp6sum
path ldp6sum/peer/peer
prefix freertr-ldp6sum
key name ldp6sum/peer
command sho ipv6 ldp inet summary
prepend ldp6_
name 6 ip=
skip 2
replace \: _
column 0 name prefix_learn
column 1 name prefix_advert
column 2 name layer2_learn
column 3 name layer2_advert
column 4 name p2mp_learn
column 5 name p2mp_advert
.
exit
- freeRtr server Prometheus agent configuration
server prometheus pr
sensor ldp4sum
sensor ldp6sum
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 |