Browse Source

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

Signed-off-by: Piotr Machała <pm7gt@933x.net>
lilik-openwrt-22.03
Piotr Machała 6 years ago
committed by pm7
parent
commit
626b197cc1
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      utils/prometheus-node-exporter-lua/Makefile
  2. +1
    -1
      utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netdev.lua

+ 2
- 2
utils/prometheus-node-exporter-lua/Makefile View File

@ -4,8 +4,8 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=prometheus-node-exporter-lua PKG_NAME:=prometheus-node-exporter-lua
PKG_VERSION:=2018.07.23
PKG_RELEASE:=3
PKG_VERSION:=2018.12.30
PKG_RELEASE:=4
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com> PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
PKG_LICENSE:=Apache-2.0 PKG_LICENSE:=Apache-2.0


+ 1
- 1
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netdev.lua View File

@ -29,7 +29,7 @@ local function scrape()
end end
end end
for i, ndss in ipairs(netdevsubstat) do 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 for dev, nds_dev in pairs(nds_table) do
netdev_metric({device=dev}, nds_dev[i+1]) netdev_metric({device=dev}, nds_dev[i+1])
end end


Loading…
Cancel
Save