Netdata chart for displaying SQM statistics.
Adapted for Netdata based on the existing sqm_collectd script. (Credit: ldir-EDB0)
OpenWrt Packages:
bash
coreutils-timeout
curl
netdata
Choose either the Local or Remote method below based on whether your OpenWrt device has git
and git-http
installed. These can be installed on OpenWrt via opkg update; opkg install git git-http
if desired. Otherwise, use the Remote method to clone the project down on another host and push the project to your OpenWrt device.
# git clone https://github.com/Fail-Safe/netdata-chart-sqm.git
# cd netdata-chart-sqm
# sh ./install.sh
Clone project and scp
it to the remote OpenWrt device:
# git clone https://github.com/Fail-Safe/netdata-chart-sqm.git
# scp -r "$(pwd)/netdata-chart-sqm" root@<OpenWrt device IP here>:~
Log into the remote OpenWrt device and execute:
# cd netdata-chart-sqm
# sh ./install.sh
After completing the above steps (whether local or remote), reload your Netdata web interface and confirm if "SQM" appears in the list of charts.
Common settings are to be modified in: /etc/netdata/charts.d/sqm.conf
sqm_ifc
- Modify to match the interface(s) where your SQM configuration is applied. Each interface names should be placed in quotes and separated by a space. e.g. for eth0 and eth1:declare -a sqm_ifc=("eth0" "eth1")
[default: "eth0"]sqm_priority
- Modify to change where the SQM chart appears in Netdata's web interface. [default: 90000]
- https://github.com/openwrt/packages/blob/master/utils/collectd/patches/910-add-cake-qdisc-types.patch
- https://github.com/openwrt/luci/blob/master/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/sqm.js
- https://github.com/openwrt/luci/blob/master/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/sqmcake.js