prometheus-node-exporter: fix ubus stations
authorNick Hainke <vincent@systemli.org>
Sat, 30 Apr 2022 05:31:52 +0000 (07:31 +0200)
committerEtienne Champetier <champetier.etienne@gmail.com>
Mon, 30 May 2022 03:04:12 +0000 (23:04 -0400)
commit0a07237514467da0767e09cfe317f9649fc7d928
treea7f309343e384009203439c6f03ff50dced29fe9
parentbdd8ab6faf1ade127765f2629ffc955595967510
prometheus-node-exporter: fix ubus stations

Not every radio has also ubus support. Only query radios with ubus
functions.

Signed-off-by: Nick Hainke <vincent@systemli.org>
[fixup, call ubus.connect() once per scrape]
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_ubus_stations.lua