From 445d8927f64c67ef910444135d72c9edd9ce964d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 29 Jun 2021 03:31:04 +0200 Subject: [PATCH] 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 --- .../files/usr/lib/lua/prometheus-collectors/wifi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua index 05b0ba1fc..4b1e8f402 100644 --- a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua +++ b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua @@ -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),