Skip to content

Commit

Permalink
Move from "." to "_" in metric stats
Browse files Browse the repository at this point in the history
  • Loading branch information
rgordill authored and pmalhaire committed Nov 5, 2023
1 parent c26b9ee commit 68dd9a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ func registerMetrics(vu modules.VU) (mqttMetrics, error) {
if registry == nil {
return m, errors.New("missing registry")
}
m.SentBytes, err = registry.NewMetric("mqtt.sent.bytes", metrics.Counter)
m.SentBytes, err = registry.NewMetric("mqtt_sent_bytes", metrics.Counter)
if err != nil {
return m, err
}

m.ReceivedBytes, err = registry.NewMetric("mqtt.received.bytes", metrics.Counter)
m.ReceivedBytes, err = registry.NewMetric("mqtt_received_bytes", metrics.Counter)
if err != nil {
return m, err
}

m.SentMessages, err = registry.NewMetric("mqtt.sent.messages.count", metrics.Counter)
m.SentMessages, err = registry.NewMetric("mqtt_sent_messages_count", metrics.Counter)
if err != nil {
return m, err
}

m.ReceivedMessages, err = registry.NewMetric("mqtt.received.messages.count", metrics.Counter)
m.ReceivedMessages, err = registry.NewMetric("mqtt_received_messages_count", metrics.Counter)
if err != nil {
return m, err
}
Expand Down

0 comments on commit 68dd9a6

Please sign in to comment.