go-metrics-stackdriver icon indicating copy to clipboard operation
go-metrics-stackdriver copied to clipboard

Switch counter metrics to use cumulative or delta

Open prog8 opened this issue 3 years ago • 10 comments

It turns out that a counter metrics use a gauge metric type as here

MetricKind: metricpb.MetricDescriptor_GAUGE,

This doesn't seem to be right. According to documentation of Aligner I am unable to calculate deltas if the metric is not defined as delta or cumulative. This is a big limitation. Should we consider switching to cumulative in case of counters?

prog8 avatar Aug 10 '21 14:08 prog8