Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 861 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 861 Bytes

openwrt_exporter

OpenWrt/LEDE metrics exporter for Prometheus written in Lua

Installation

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

Grafana ScreenShoot

alt text