mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 11:21:07 +02:00
not session... service
This commit is contained in:
@ -135,7 +135,7 @@ func (ma *metricsAgent) processMetrics(m *model.Metrics) error {
|
|||||||
for k, v := range m.Sessions {
|
for k, v := range m.Sessions {
|
||||||
if ma.writeApi != nil {
|
if ma.writeApi != nil {
|
||||||
pt := influxdb2.NewPoint("xfer",
|
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},
|
map[string]interface{}{"bytesRead": v.BytesRead, "bytesWritten": v.BytesWritten},
|
||||||
time.UnixMilli(v.LastUpdate))
|
time.UnixMilli(v.LastUpdate))
|
||||||
pts = append(pts, pt)
|
pts = append(pts, pt)
|
||||||
|
Reference in New Issue
Block a user