##install collectd on router
opkg update
opkg install collectd-mod-ethstat collectd-mod-ipstatistics collectd-mod-irq collectd-mod-load collectd-mod-ping collectd-mod-powerdns collectd-mod-sqm collectd-mod-thermal collectd-mod-wireless collectd-mod-iptables
opkg install luci-app-statistics
##install iptmon on router
VERSION=0.1.6
wget https://github.com/oofnikj/iptmon/releases/download/v${VERSION}/iptmon_${VERSION}-1_all.ipk -O iptmon_${VERSION}-1_all.ipk
opkg install ./iptmon_${VERSION}-1_all.ipk
##Config luci_statistics on router
Copy my config file “luci_statistics” to /etc/config/
file → (config statistics 'collectd' option BaseDir '/var/run/collectd' option Inc - Pastebin.com)
(update the export location to your server ip where prom/collect-export is located.)
--------------------Server side setup-----------------------------------------------
##Install Grafana, Promethesus, Prom/collect-exporter on Docker. You also need to configure Prometheus to scrape the collectd exporter.
https://hub.docker.com/r/prom/collectd-exporter/
Import my grafana dashboard
File → (pastebin: { "__inputs": [ { "name": "DS_VPS", "label": "VPS", - Pastebin.com)