Add client WMM power save status to field list
This commit is contained in:
parent
cbadf04f6d
commit
c287c1066b
|
|
@ -34,39 +34,40 @@ func (u *InfluxUnifi) batchClient(r report, s *unifi.Client) { // nolint: funlen
|
||||||
"vlan": s.Vlan.Txt,
|
"vlan": s.Vlan.Txt,
|
||||||
}
|
}
|
||||||
fields := map[string]interface{}{
|
fields := map[string]interface{}{
|
||||||
"anomalies": s.Anomalies,
|
"anomalies": s.Anomalies,
|
||||||
"ip": s.IP,
|
"ip": s.IP,
|
||||||
"essid": s.Essid,
|
"essid": s.Essid,
|
||||||
"bssid": s.Bssid,
|
"bssid": s.Bssid,
|
||||||
"channel": s.Channel.Val,
|
"channel": s.Channel.Val,
|
||||||
"hostname": s.Name,
|
"hostname": s.Name,
|
||||||
"radio_desc": s.RadioDescription,
|
"radio_desc": s.RadioDescription,
|
||||||
"satisfaction": s.Satisfaction.Val,
|
"satisfaction": s.Satisfaction.Val,
|
||||||
"bytes_r": s.BytesR,
|
"bytes_r": s.BytesR,
|
||||||
"ccq": s.Ccq,
|
"ccq": s.Ccq,
|
||||||
"noise": s.Noise,
|
"noise": s.Noise,
|
||||||
"note": s.Note,
|
"note": s.Note,
|
||||||
"roam_count": s.RoamCount,
|
"powersave_enabled": s.PowersaveEnabled,
|
||||||
"rssi": s.Rssi,
|
"roam_count": s.RoamCount,
|
||||||
"rx_bytes": s.RxBytes,
|
"rssi": s.Rssi,
|
||||||
"rx_bytes_r": s.RxBytesR,
|
"rx_bytes": s.RxBytes,
|
||||||
"rx_packets": s.RxPackets,
|
"rx_bytes_r": s.RxBytesR,
|
||||||
"rx_rate": s.RxRate,
|
"rx_packets": s.RxPackets,
|
||||||
"signal": s.Signal,
|
"rx_rate": s.RxRate,
|
||||||
"tx_bytes": s.TxBytes,
|
"signal": s.Signal,
|
||||||
"tx_bytes_r": s.TxBytesR,
|
"tx_bytes": s.TxBytes,
|
||||||
"tx_packets": s.TxPackets,
|
"tx_bytes_r": s.TxBytesR,
|
||||||
"tx_retries": s.TxRetries,
|
"tx_packets": s.TxPackets,
|
||||||
"tx_power": s.TxPower,
|
"tx_retries": s.TxRetries,
|
||||||
"tx_rate": s.TxRate,
|
"tx_power": s.TxPower,
|
||||||
"uptime": s.Uptime,
|
"tx_rate": s.TxRate,
|
||||||
"wifi_tx_attempts": s.WifiTxAttempts,
|
"uptime": s.Uptime,
|
||||||
"wired-rx_bytes": s.WiredRxBytes,
|
"wifi_tx_attempts": s.WifiTxAttempts,
|
||||||
"wired-rx_bytes-r": s.WiredRxBytesR,
|
"wired-rx_bytes": s.WiredRxBytes,
|
||||||
"wired-rx_packets": s.WiredRxPackets,
|
"wired-rx_bytes-r": s.WiredRxBytesR,
|
||||||
"wired-tx_bytes": s.WiredTxBytes,
|
"wired-rx_packets": s.WiredRxPackets,
|
||||||
"wired-tx_bytes-r": s.WiredTxBytesR,
|
"wired-tx_bytes": s.WiredTxBytes,
|
||||||
"wired-tx_packets": s.WiredTxPackets,
|
"wired-tx_bytes-r": s.WiredTxBytesR,
|
||||||
|
"wired-tx_packets": s.WiredTxPackets,
|
||||||
}
|
}
|
||||||
|
|
||||||
r.send(&metric{Table: "clients", Tags: tags, Fields: fields})
|
r.send(&metric{Table: "clients", Tags: tags, Fields: fields})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue