prometheus-node-exporter-lua: rewrite wifi scraper

On my bullet m2, scrape duration goes from between 0.2 and 0.5 to a stable 0.025
We also don't depend on luci anymore

This remove wifi_network_up metric, but this metric was buggy
wifi_network_up{ifname="wlan0-1",ssid="test1",channel="11",mode="Master",bssid="12:34:56:78:9A:BC",country="FR",frequency="2.462"} 1
wifi_network_up{ifname="radio0.network2",ssid="test1",channel="11",mode="Master",country="US",frequency="2.462"} 0

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
Etienne Champetier
2017-12-08 19:03:36 -08:00
parent 747f4ce7af
commit 7b1b69ca6c
2 changed files with 39 additions and 46 deletions

View File

@@ -16,7 +16,7 @@ define Package/prometheus-node-exporter-lua
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Provides system statistics as Prometheus scraping endpoint
DEPENDS:=+luasocket
DEPENDS:=+luasocket +libiwinfo-lua +libubus-lua +lua
URL:=https://github.com/rbo/openwrt_exporter
PKGARCH:=all
endef