From b5c4931da71edb82207d465db4ea985e8c661898 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Wed, 1 Apr 2020 12:14:54 +0200 Subject: [PATCH] database: influxdb: add support for OWE statistics --- database/influxdb/global.go | 3 +++ database/influxdb/node.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/database/influxdb/global.go b/database/influxdb/global.go index 6c4330e..7fc3fb3 100644 --- a/database/influxdb/global.go +++ b/database/influxdb/global.go @@ -48,6 +48,9 @@ func GlobalStatsFields(stats *runtime.GlobalStats) map[string]interface{} { "clients.wifi": stats.ClientsWifi, "clients.wifi24": stats.ClientsWifi24, "clients.wifi5": stats.ClientsWifi5, + "clients.owe": stats.ClientsOwe, + "clients.owe24": stats.ClientsOwe24, + "clients.owe5": stats.ClientsOwe5, } } diff --git a/database/influxdb/node.go b/database/influxdb/node.go index 9c69d5c..85cdfbe 100644 --- a/database/influxdb/node.go +++ b/database/influxdb/node.go @@ -40,6 +40,9 @@ func (conn *Connection) InsertNode(node *runtime.Node) { "clients.wifi": stats.Clients.Wifi, "clients.wifi24": stats.Clients.Wifi24, "clients.wifi5": stats.Clients.Wifi5, + "clients.owe": stats.Clients.Owe, + "clients.owe24": stats.Clients.Owe24, + "clients.owe5": stats.Clients.Owe5, "clients.total": stats.Clients.Total, "memory.buffers": stats.Memory.Buffers, "memory.cached": stats.Memory.Cached,