diff --git a/integrations/influxunifi/clients.go b/integrations/influxunifi/clients.go index e878d54e..a1b71efb 100644 --- a/integrations/influxunifi/clients.go +++ b/integrations/influxunifi/clients.go @@ -34,39 +34,40 @@ func (u *InfluxUnifi) batchClient(r report, s *unifi.Client) { // nolint: funlen "vlan": s.Vlan.Txt, } fields := map[string]interface{}{ - "anomalies": s.Anomalies, - "ip": s.IP, - "essid": s.Essid, - "bssid": s.Bssid, - "channel": s.Channel.Val, - "hostname": s.Name, - "radio_desc": s.RadioDescription, - "satisfaction": s.Satisfaction.Val, - "bytes_r": s.BytesR, - "ccq": s.Ccq, - "noise": s.Noise, - "note": s.Note, - "roam_count": s.RoamCount, - "rssi": s.Rssi, - "rx_bytes": s.RxBytes, - "rx_bytes_r": s.RxBytesR, - "rx_packets": s.RxPackets, - "rx_rate": s.RxRate, - "signal": s.Signal, - "tx_bytes": s.TxBytes, - "tx_bytes_r": s.TxBytesR, - "tx_packets": s.TxPackets, - "tx_retries": s.TxRetries, - "tx_power": s.TxPower, - "tx_rate": s.TxRate, - "uptime": s.Uptime, - "wifi_tx_attempts": s.WifiTxAttempts, - "wired-rx_bytes": s.WiredRxBytes, - "wired-rx_bytes-r": s.WiredRxBytesR, - "wired-rx_packets": s.WiredRxPackets, - "wired-tx_bytes": s.WiredTxBytes, - "wired-tx_bytes-r": s.WiredTxBytesR, - "wired-tx_packets": s.WiredTxPackets, + "anomalies": s.Anomalies, + "ip": s.IP, + "essid": s.Essid, + "bssid": s.Bssid, + "channel": s.Channel.Val, + "hostname": s.Name, + "radio_desc": s.RadioDescription, + "satisfaction": s.Satisfaction.Val, + "bytes_r": s.BytesR, + "ccq": s.Ccq, + "noise": s.Noise, + "note": s.Note, + "powersave_enabled": s.PowersaveEnabled, + "roam_count": s.RoamCount, + "rssi": s.Rssi, + "rx_bytes": s.RxBytes, + "rx_bytes_r": s.RxBytesR, + "rx_packets": s.RxPackets, + "rx_rate": s.RxRate, + "signal": s.Signal, + "tx_bytes": s.TxBytes, + "tx_bytes_r": s.TxBytesR, + "tx_packets": s.TxPackets, + "tx_retries": s.TxRetries, + "tx_power": s.TxPower, + "tx_rate": s.TxRate, + "uptime": s.Uptime, + "wifi_tx_attempts": s.WifiTxAttempts, + "wired-rx_bytes": s.WiredRxBytes, + "wired-rx_bytes-r": s.WiredRxBytesR, + "wired-rx_packets": s.WiredRxPackets, + "wired-tx_bytes": s.WiredTxBytes, + "wired-tx_bytes-r": s.WiredTxBytesR, + "wired-tx_packets": s.WiredTxPackets, } r.send(&metric{Table: "clients", Tags: tags, Fields: fields})