OpenWrt/LEDE metrics exporter for Prometheus written in Lua
at your openwrt box:
# Install dependencies
opkg update
opkg install luasocket curl ca-certificates luci-base luci-lib-nixio iwinfo
# copy metrics.lua into /bin/
curl -o /bin/metrics.lua https://raw.githubusercontent.com/openwrt-exporter/openwrt_exporter/master/metrics.lua
# copy initscript into /etc/init.d/
curl -o /etc/init.d/openwrt-exporter https://raw.githubusercontent.com/openwrt-exporter/openwrt_exporter/master/metrics.initscript
chmod +x /bin/metrics.lua /etc/init.d/openwrt-exporter
# start your exporter and enable on boot
/etc/init.d/openwrt-exporter start
/etc/init.d/openwrt-exporter enable