mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
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:
committed by
Nick Hainke vincent@systemli.org
parent
77adfcac25
commit
8dfd1bc59a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user