Skip to content

Allow dropping _max time-series from Timer #6114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SHxKM opened this issue Apr 13, 2025 · 0 comments
Open

Allow dropping _max time-series from Timer #6114

SHxKM opened this issue Apr 13, 2025 · 0 comments

Comments

@SHxKM
Copy link

SHxKM commented Apr 13, 2025

Please describe the feature request.
Micrometer should allow its user to configure a Timer without the _max time-series. It is not always needed, unlike _count and _sum. For our company, this time-series is completely useless, and we're paying a heavy tax on it.

Rationale
We're admittedly scraping much data, but we saw that eliminating {timer}_max shrunk the /metrics endpoint response size by over 35% when Timers are the dominant metrics.

Additional context
We're using Micrometer with Prometheus and Spring. I can instead create two separate counters, one for duration and one for invocations, but the Micrometer docs clearly state you should never use a counter where you need a Timer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant