google/go-metrics-stackdriver

Support different metric types with the same key

Closed this issue · 0 comments

tam7t commented

gometrics supports gauge/counter/histograms with all the same "key".

example: https://github.com/hashicorp/vault/blob/35667f93a7afce915c4cd5fed99682918c46f60e/sdk/database/dbplugin/databasemiddleware.go#L122-L134

Proposal: append count or gauge to the metric key name (and leave histograms naked).