Browse Source

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>
lilik-openwrt-22.03
Martin Weinelt 3 years ago
committed by Etienne Champetier
parent
commit
445d8927f6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua

+ 1
- 1
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi.lua 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),


Loading…
Cancel
Save