not session... service

This commit is contained in:
Michael Quigley 2022-10-19 12:00:07 -04:00
parent 13251aec17
commit 4a69d9dd31
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -135,7 +135,7 @@ func (ma *metricsAgent) processMetrics(m *model.Metrics) error {
for k, v := range m.Sessions {
if ma.writeApi != nil {
pt := influxdb2.NewPoint("xfer",
map[string]string{"namespace": m.Namespace, "session": k},
map[string]string{"namespace": m.Namespace, "service": k},
map[string]interface{}{"bytesRead": v.BytesRead, "bytesWritten": v.BytesWritten},
time.UnixMilli(v.LastUpdate))
pts = append(pts, pt)