From 626b197cc1b7f8cbb6937d7b6c1ed9982296feac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Macha=C5=82a?= Date: Sun, 30 Dec 2018 22:03:11 +0100 Subject: [PATCH] prometheus-node-exporter-lua: change network metric type to counter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Piotr MachaƂa --- utils/prometheus-node-exporter-lua/Makefile | 4 ++-- .../files/usr/lib/lua/prometheus-collectors/netdev.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/prometheus-node-exporter-lua/Makefile b/utils/prometheus-node-exporter-lua/Makefile index f63ec7443..bab0fde12 100644 --- a/utils/prometheus-node-exporter-lua/Makefile +++ b/utils/prometheus-node-exporter-lua/Makefile @@ -4,8 +4,8 @@ include $(TOPDIR)/rules.mk 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 PKG_LICENSE:=Apache-2.0 diff --git a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netdev.lua b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netdev.lua index 4aff513b3..679b2f37b 100644 --- a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netdev.lua +++ b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netdev.lua @@ -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