add selected gateway as tag in influxdb
Signed-off-by: Florian Maurer <f.maurer@outlook.de>
This commit is contained in:
parent
22f67e2d4d
commit
61ed2208c6
|
@ -173,7 +173,9 @@ func (conn *Connection) InsertNode(node *runtime.Node) {
|
|||
fields["airtime"+suffix+".frequency"] = airtime.Frequency
|
||||
tags.SetString("frequency"+suffix, strconv.Itoa(int(airtime.Frequency)))
|
||||
}
|
||||
|
||||
// Add selected gateway mac as tag
|
||||
tags.SetString("gateway", stats.GatewayIPv4)
|
||||
tags.SetString("gateway6", stats.GatewayIPv6)
|
||||
conn.addPoint(MeasurementNode, tags, fields, time)
|
||||
|
||||
// Add DHCP statistics
|
||||
|
|
Loading…
Reference in New Issue