mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
prometheus-node-exporter-lua: change network metric type to counter
Signed-off-by: Piotr Machała <pm7gt@933x.net>
(cherry picked from commit 626b197cc1)
This commit is contained in:
committed by
Etienne Champetier
parent
ad34675dfb
commit
70bd5a36cd
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user