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 <[email protected]>
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_LICENSE:=Apache-2.0
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