Skip to content

Commit

Permalink
Merge pull request #256 from signalfx/fixexporter
Browse files Browse the repository at this point in the history
Fix go-metrics/exporter where we don't include the correct dimensions
  • Loading branch information
mdubbyap authored Sep 5, 2023
2 parents 3a717ab + 90bc1d5 commit b545ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-metrics/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (e *Exporter) metricToDatapoints(dps []*datapoint.Datapoint, name string, i
case metrics.Meter:
m := metric.Snapshot()
dps = append(dps,
sfxclient.Cumulative(metricName+".count", e.dims, m.Count()),
sfxclient.Cumulative(metricName+".count", dims, m.Count()),
sfxclient.GaugeF(metricName+".1m", dims, m.Rate1()),
sfxclient.GaugeF(metricName+".5m", dims, m.Rate5()),
sfxclient.GaugeF(metricName+".15m", dims, m.Rate15()),
Expand Down

0 comments on commit b545ac6

Please sign in to comment.