-
Notifications
You must be signed in to change notification settings - Fork 828
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
http_server_duration_bucket generates high cardinality metrics #5753
Comments
hi @irizzant! I believe |
Hey @trask !
|
I also noticed traces like these, which makes me think this is also a problem on the client end:
you can see that |
what is your servlet mapping for on the client side |
@trask
|
is |
@trask no the PNG is a static resource it's not served by JAX-RS |
Hey @irizzant , |
this request took me a lot of work! Anyway, please check https://github.com/irizzant/otel-java-instrumentation-5753 If you run the reproducer, you will see that the exported Undertow metrics have |
Describe the bug
The Java agent, when configured to export metrics with Prometheus exporter, creates as expected the bucket
http_server_duration_bucket
.This metric also has the
http_route
label, which produces high cardinality because it contains full paths like:In my cluster this caused the number of time series to increase of ~300k !
Steps to reproduce
What did you expect to see?
http_server_duration_bucket should export lower cardinality metrics
What did you see instead?
http_server_duration_bucket export high cardinality metrics
What version are you using?
1.12.1
Environment
Compiler: (e.g., "AdoptOpenJDK 11.0.6")
OS: Ubuntu 20.04
Runtime (if different from JDK above): (e.g., "Oracle JRE 8u251")
OS (if different from OS compiled on): (e.g., "Windows Server 2019")
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: