prometheus-node-exporter-lua: fixup openwrt collector
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
(cherry picked from commit 3afccecdb2
)
This commit is contained in:
parent
a7110baf4c
commit
ab327729c8
1 changed files with 3 additions and 3 deletions
|
@ -12,9 +12,9 @@ local labels = {
|
||||||
target = b.release.target
|
target = b.release.target
|
||||||
}
|
}
|
||||||
|
|
||||||
b = nil
|
local b = nil
|
||||||
u = nil
|
local u = nil
|
||||||
ubus = 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…
Reference in a new issue