mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 06:18:21 +04:00
Merge pull request #7813 from pm73/master
prometheus-node-exporter-lua: change network metric type to counter
This commit is contained in:
@@ -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 <champetier.etienne@gmail.com>
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
|
||||
@@ -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