Skip to content

openwrt-exporter/openwrt_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • Lua 94.4%
  • Makefile 4.4%
  • Shell 1.2%