mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
prometheus-node-exporter-lua: update netstat
The snmp and netstat interface are enabled by default See: 4943bc5cff47a482c3010033e04c6d489a4b733c Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=prometheus-node-exporter-lua
|
PKG_NAME:=prometheus-node-exporter-lua
|
||||||
PKG_VERSION:=2020.12.07
|
PKG_VERSION:=2020.12.07
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ local netsubstat = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local function scrape()
|
local function scrape()
|
||||||
-- NOTE: Both of these are missing in OpenWRT kernels.
|
|
||||||
-- See: https://dev.openwrt.org/ticket/15781
|
|
||||||
local netstat = get_contents("/proc/net/netstat") .. get_contents("/proc/net/snmp")
|
local netstat = get_contents("/proc/net/netstat") .. get_contents("/proc/net/snmp")
|
||||||
|
|
||||||
-- all devices
|
-- all devices
|
||||||
|
|||||||
Reference in New Issue
Block a user