prometheus-node-exporter-lua: change network metric type to counter

Signed-off-by: Piotr Machała <pm7gt@933x.net>
This commit is contained in:
Piotr Machała
2018-12-30 22:03:11 +01:00
committed by pm7
parent 641c815885
commit 626b197cc1
2 changed files with 3 additions and 3 deletions
@@ -29,7 +29,7 @@ local function scrape()
end
end
for i, ndss in ipairs(netdevsubstat) do
netdev_metric = metric("node_network_" .. ndss, "gauge")
netdev_metric = metric("node_network_" .. ndss, "counter")
for dev, nds_dev in pairs(nds_table) do
netdev_metric({device=dev}, nds_dev[i+1])
end