4. Monitoring with Grafana¶
Here we will show how to export KPIs to a time-series database which can then be used with a graphical tool like Grafana. This assumes that InfluxDB and Grafana have been installed on 172.16.0.2 following this documentation.
vrouter> edit running
vrouter running config# / vrf main interface physical mgt
vrouter running physical mgt#! port pci-b0s6
vrouter running physical mgt# ipv4 address 172.16.0.1/24
vrouter running physical mgt# / vrf main kpi telegraf
vrouter running telegraf# enabled true
vrouter running telegraf# influxdb-output url http://172.16.0.2:8086 database telegraf
vrouter running telegraf# metrics monitored-interface name lan vrf main
vrouter running telegraf# metrics monitored-interface name wan vrf main
vrouter running telegraf# commit