From 747f4ce7af53a840ff9674d33851767818f96dba Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Fri, 8 Dec 2017 19:03:36 -0800 Subject: [PATCH] prometheus-node-exporter-lua: fix nat scraper Signed-off-by: Etienne Champetier --- .../files/usr/bin/prometheus-node-exporter-lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/prometheus-node-exporter-lua/files/usr/bin/prometheus-node-exporter-lua b/utils/prometheus-node-exporter-lua/files/usr/bin/prometheus-node-exporter-lua index 9fce62029..488374ddd 100755 --- a/utils/prometheus-node-exporter-lua/files/usr/bin/prometheus-node-exporter-lua +++ b/utils/prometheus-node-exporter-lua/files/usr/bin/prometheus-node-exporter-lua @@ -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