prometheus-node-exporter-lua: lower case bssid label value in wifi exporter

To allow cross matching bssids between different exporters we need to
use the same case, as label matching is case senstive.

Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
Martin Weinelt 2021-06-29 03:31:04 +02:00 committed by Etienne Champetier
parent a1b145abb0
commit 445d8927f6

View file

@ -18,7 +18,7 @@ local function scrape()
local labels = {
channel = iw.channel(ifname),
ssid = iw.ssid(ifname),
bssid = iw.bssid(ifname),
bssid = string.lower(iw.bssid(ifname)),
mode = iw.mode(ifname),
ifname = ifname,
country = iw.country(ifname),