OpenWRT

Update & Upgrade All Packages

opkg update \
&& opkg list-upgradable \
| cut -d' ' -f1 \
| xargs opkg upgrade

Expose metrics endpoint with node-exporter

opkg install prometheus-node-exporter-lua
sed -i "s/listen_interface 'loopback'/listen_interface 'wan'/" /etc/config/prometheus-node-exporter-lua
/etc/init.d/prometheus-node-exporter-lua start
/etc/init.d/prometheus-node-exporter-lua enable

Then curl the device address like:

curl http://openwrt.lan:9100/metrics