mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
prometheus-node-exporter-lua: mwan3: speed up
Request only 'interfaces' status, as we don't use 'connected' and 'policies' status. On my router with 5 wans / 2 tracking IPs per wan, scrape time goes from 1.90s to 1.30s (still pretty slow but better) Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=prometheus-node-exporter-lua
|
||||
PKG_VERSION:=2025.06.23
|
||||
PKG_RELEASE:=6
|
||||
PKG_VERSION:=2025.06.24
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
|
||||
@@ -2,7 +2,7 @@ local ubus = require "ubus"
|
||||
|
||||
local function scrape()
|
||||
local u = ubus.connect()
|
||||
local status = u:call("mwan3", "status", {})
|
||||
local status = u:call("mwan3", "status", {section="interfaces"})
|
||||
if status == nil then
|
||||
error("Could not get mwan3 status")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user