Browse Source

prometheus-node-exporter-lua: fix nat scraper

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
lilik-openwrt-22.03
Etienne Champetier 7 years ago
parent
commit
747f4ce7af
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      utils/prometheus-node-exporter-lua/files/usr/bin/prometheus-node-exporter-lua

+ 1
- 2
utils/prometheus-node-exporter-lua/files/usr/bin/prometheus-node-exporter-lua View File

@ -266,8 +266,7 @@ end
function scraper_nat() function scraper_nat()
-- documetation about nf_conntrack: -- documetation about nf_conntrack:
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html -- 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" ) nat_metric = metric("node_nat_traffic", "gauge" )
for i, e in ipairs(natstat) do for i, e in ipairs(natstat) do


Loading…
Cancel
Save