prometheus-node-exporter-lua: fix hostapd_ubus_stations & hostapd_stations
authorMichael Payne <[email protected]>
Mon, 31 Mar 2025 09:30:49 +0000 (09:30 +0000)
committerEtienne Champetier <[email protected]>
Mon, 23 Jun 2025 11:50:18 +0000 (14:50 +0300)
commit28c085f7c3f253f34593860e9c56f948d98ae887
tree4f915764cd8a0278b5ed200209ec5b7aacefc123
parent51137e588271ac294b86c4ad369e5fb110db75a5
prometheus-node-exporter-lua: fix hostapd_ubus_stations & hostapd_stations

hostapd exposes the `hostapd-auth` ubus object. In both
hostapd_ubus_stations.lua and hostapd_stations.lua this object is
incorrectly matched as if it were a wifi phy such as `hostapd.phy0-ap0`.
Using the literal period to find interfaces (^hostapd%.) instead of the
pattern-matching period (hostapd.) fixes this.

fix formatting consistency

Signed-off-by: Michael Payne <[email protected]>
[fix version conflict]
Signed-off-by: Etienne Champetier <[email protected]>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua