Browse Source

prometheus-node-exporter-lua: fixup openwrt collector

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
(cherry picked from commit 3afccecdb2)
lilik-openwrt-22.03
Etienne Champetier 3 years ago
committed by Etienne Champetier
parent
commit
ab327729c8
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/openwrt.lua

+ 3
- 3
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/openwrt.lua View File

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


Loading…
Cancel
Save