prometheus-node-exporter-lua: fixup openwrt collector
authorEtienne Champetier <champetier.etienne@gmail.com>
Sun, 24 Apr 2022 03:25:09 +0000 (23:25 -0400)
committerEtienne Champetier <champetier.etienne@gmail.com>
Mon, 25 Apr 2022 16:22:22 +0000 (12:22 -0400)
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/openwrt.lua

index 8d44792b917d5642e6f268db1d0e873ee1519f09..a92b7ddc16f8753181c0a7896ed1772df6961c6e 100644 (file)
@@ -12,9 +12,9 @@ local labels = {
     target = b.release.target
 }
 
-b = nil
-u = nil
-ubus = nil
+local b = nil
+local u = nil
+local ubus = nil
 
 local function scrape()
     metric("node_openwrt_info", "gauge", labels, 1)