Skip to content

avinvarghese/openwrt_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 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 /usr/bin/
curl -o /usr/bin/metrics.lua https://raw.githubusercontent.com/avinvarghese/openwrt_exporter/master/metrics.lua

# copy initscript into /etc/init.d/
curl -o /etc/init.d/openwrt-exporter
https://raw.githubusercontent.com/avinvarghese/openwrt_exporter/master/metrics.initscript

chmod +x /usr/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

About

OpenWrt metrics exporter for Prometheus written in Lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 98.7%
  • Shell 1.3%