prometheus-node-exporter-lua: update dawn exporter

Add dawn exporter to Makefile.
Add hostname to export.

Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
Nick Hainke
2020-10-01 22:19:07 +02:00
committed by Nick Hainke vincent@systemli.org
parent 77adfcac25
commit 8dfd1bc59a
2 changed files with 16 additions and 3 deletions
@@ -20,6 +20,7 @@ local function scrape()
ssid = ssid,
bssid = ap,
freq = ap_table['freq'],
hostname = ap_table['hostname'],
ht_support = ht_support,
vht_support = vht_support,
neighbor_report = ap_table['neighbor_report'],
@@ -34,14 +35,14 @@ local function scrape()
local client_vht_support = (client_table['vht'] == true) and 1 or 0
local client_signal = client_table['signal'] or -255
local labels = {
local labels_client_signal = {
ssid = ssid,
bssid = ap,
mac = client,
ht_support = client_ht_support,
vht_support = client_vht_support,
}
metric_dawn_station_signal_dbm(labels, client_signal)
metric_dawn_station_signal_dbm(labels_client_signal, client_signal)
end
end
end