From 743dbe3ef5a773549fb615d59dd5e77c31fec284 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Wed, 1 Apr 2020 12:15:03 +0200 Subject: [PATCH] database: graphite: add support for OWE statistics --- database/graphite/global.go | 3 +++ database/graphite/node.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/database/graphite/global.go b/database/graphite/global.go index 62fff66..936ff70 100644 --- a/database/graphite/global.go +++ b/database/graphite/global.go @@ -41,6 +41,9 @@ func GlobalStatsFields(name string, stats *runtime.GlobalStats) []graphigo.Metri {Name: name + ".clients.wifi", Value: stats.ClientsWifi}, {Name: name + ".clients.wifi24", Value: stats.ClientsWifi24}, {Name: name + ".clients.wifi5", Value: stats.ClientsWifi5}, + {Name: name + ".clients.owe", Value: stats.ClientsOwe}, + {Name: name + ".clients.owe24", Value: stats.ClientsOwe24}, + {Name: name + ".clients.owe5", Value: stats.ClientsOwe5}, } } diff --git a/database/graphite/node.go b/database/graphite/node.go index 5f9dca7..fe67091 100644 --- a/database/graphite/node.go +++ b/database/graphite/node.go @@ -112,6 +112,9 @@ func (c *Connection) InsertNode(node *runtime.Node) { addField("clients.wifi", stats.Clients.Wifi) addField("clients.wifi24", stats.Clients.Wifi24) addField("clients.wifi5", stats.Clients.Wifi5) + addField("clients.owe", stats.Clients.Owe) + addField("clients.owe24", stats.Clients.Owe24) + addField("clients.owe5", stats.Clients.Owe5) addField("clients.total", stats.Clients.Total) addField("memory.buffers", stats.Memory.Buffers) addField("memory.cached", stats.Memory.Cached)