MinMaxSumCountAggregator export to Prometheus; map to summary + min & max? #1172
Labels
1.10.0rc1
release candidate 1 for metrics GA
exporters
metrics
release:required-for-ga
To be resolved before GA release
This is a question / discussion issue. I am working in this area and would like to get feedback and direction before I write too much code.
After #945 we have working export of ValueRecorder that have a MinMaxSumCountAggregator attached. It maps the MinMaxSumCountAggregator to the SummaryMetricFamily in Prometheus, which gets us a
_sum
and_count
metric in the end. That means we've covered two parts of our aggregator, AFAICT we simply don't map or transmit the min and max parts? Could and should we map those to individual GaugeMetricFamily?Like, we now have this code:
We could do something along the lines of:
There is no direct match in Prometheus for a MinMaxSumCount, so is this the next best thing we could and should do?
There are associated changes elsewhere, like we need to return a list of metrics since we do a 1:N map and not 1:1 like before, but that's all manageable I think.
I'm sort of new to the idea of these metric types and I would like to understand if the above is conceptually correct?
@cbrand given that you wrote #945, your feedback here would be much appreciated!
The text was updated successfully, but these errors were encountered: