micrometer-metrics/micrometer
Refinement/Clarification of LongTaskTimer when using Prometheus
Fermée
#6 507 ouverte le 3 juil. 2025
doc-updatehelp wantedregistry: prometheus
Métriques du dépôt
- Stars
- (4 882 étoiles)
- Métriques de merge PR
- (Merge moyen 1j 21h) (100 PRs mergées en 30 j)
Description
Please describe the feature request
Following a question in Slack with @shakuzen https://micrometer-metrics.slack.com/archives/C662HUJC9/p1751460825070189
The Migration to Prometheus 1.x client libs in micrometer 1.13. changed the behaviour for LongTaskTimer.
Specifically in said Slack thread it was concluded that:
- The migration guide could be more precise in outlining two distinct changes
- Histogram -> GaugeHistogram for LongTaskTimers with histogram buckets.
- No more
activeordurationsuffix._active_count->_countor_gcount,_duration_sum->_sumor_gsum
- The docs for LongTaskTimer or Micrometer Prometheus docs don't make it clear that
.publishPercentileHistogram()might be necessary for certain use cases - Consider making all
LongTaskTimers produce HistogramGauges and ditch Summary due to the semantic mismatch