mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 19:11:24 +00:00
prometheus-node-exporter-lua: fix nat scraper
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
@@ -266,8 +266,7 @@ end
|
||||
function scraper_nat()
|
||||
-- documetation about nf_conntrack:
|
||||
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html
|
||||
-- local natstat = line_split(get_contents("/proc/net/nf_conntrack"))
|
||||
local natstat = line_split(get_contents("nf_conntrack"))
|
||||
local natstat = line_split(get_contents("/proc/net/nf_conntrack"))
|
||||
|
||||
nat_metric = metric("node_nat_traffic", "gauge" )
|
||||
for i, e in ipairs(natstat) do
|
||||
|
||||
Reference in New Issue
Block a user