prometheus-node-exporter-lua: fix bss identifier in hostapd_stations
authorMartin Weinelt <hexa@darmstadt.ccc.de>
Sat, 24 Jul 2021 15:42:25 +0000 (17:42 +0200)
committerMartin Weinelt <hexa@darmstadt.ccc.de>
Sat, 24 Jul 2021 15:44:14 +0000 (17:44 +0200)
commit2849ec248d0bcdce700abab9062f74cefccadee4
tree5e47cb50c71e62ccc920c3185a26bc9e3870dc69
parent1614cdde0a452d002fd90d8496f8a22be9229389
prometheus-node-exporter-lua: fix bss identifier in hostapd_stations

We previously did not identify the correct BSS from the output of
`hostapd_cli -i <phy> status`, because when asked for a vif it will
always respond with information relevant to the whole phy.

The per vif settings will use an iterator and we now try to detect
the correct BSS from that output.

Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua