From: Martin Weinelt Date: Tue, 29 Jun 2021 01:31:04 +0000 (+0200) Subject: prometheus-node-exporter-lua: lower case bssid label value in wifi exporter X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=445d8927f64c67ef910444135d72c9edd9ce964d;p=feed%2Fpackages.git 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 --- 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 05b0ba1fc9..4b1e8f4020 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),