-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Rest Client metrics show real value in uri attribute instead of path parameter placeholders when used with @Url #44974
Labels
Milestone
Comments
/cc @cescoffier (rest-client), @ebullient (metrics), @geoand (rest-client), @jmartisk (metrics) |
@brunobat Can you have a look? That can be a problem. |
This is due to the new feature I added, I'll have a look soon |
Yes, this is a problem. Will also have a look |
geoand
added a commit
to brunobat/quarkus
that referenced
this issue
Dec 10, 2024
geoand
added a commit
to brunobat/quarkus
that referenced
this issue
Dec 10, 2024
geoand
added a commit
to brunobat/quarkus
that referenced
this issue
Dec 10, 2024
geoand
added a commit
to brunobat/quarkus
that referenced
this issue
Dec 11, 2024
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Dec 18, 2024
Fixes: quarkusio#44974 (cherry picked from commit e4a3279)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using Rest Client with the new @url annotation for dynamic url together with metrics quarkus-micrometer-registry-prometheus I can see that uri attribute of the metric shows values passed as path parameters instead of path parameters placeholders.
This is problematic as it creates one metric per each path parameter permutation.
I checked that Rest Client with base uri defined in configuration or via RestClientBuilder produces correct metrics. So it must be related to implementation of the new @url annotation.
Expected behavior
Metrics should show path parameter placeholder
/example/{id}
to reduce cardinality of the metricsActual behavior
Metrics show
/example/1
with real value1
instead of path parameter placeholder{id}
How to Reproduce?
Project dependencies
Test code using @url
Metrics endpoint
http://localhost:8080/q/metrics
Output of
uname -a
orver
No response
Output of
java -version
java 21.0.1 2023-10-17 LTS
Quarkus version or git rev
3.17.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: