Client Metrics does not use template URI variables
See original GitHub issueDescription
Client Metrics does not use template URI variable for the called api.
instead of having one metric:
http_client_requests_seconds_count{.... status="200",uri="/api/v1/surveys/{surveyId}",} 5.0
there are multiple metrics:
http_client_requests_seconds_count{.... status="200",uri="/api/v1/surveys/387",} 3.0
http_client_requests_seconds_count{.... status="200",uri="/api/v1/surveys/388",} 2.0
I don’t think it’s the correct behavior, it should probably works like the server metrics.
I did a very little debugging (i m not very familiar with the code), and the problem seems in the HttpRequestMetric, the routingContext
variable is null, so he ll just return the complete path.
It may be a problem with my dependencies?
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Metric in micrometer in URI template . Some path variable ...
In case you are using Spring and RestTemplate for http call, you can ... import org.springframework.boot.actuate.metrics.web.client.
Read more >Template Variables - Datadog Docs
Note: Dashboard template variables must be metric tags, not event tags. Dashboard. From your dashboard, search events with template variables using the format:....
Read more >57. Metrics - Spring
Spring Boot provides a metrics endpoint that can be used diagnostically to examine the metrics collected by an application. The endpoint is not...
Read more >Monitoring and Instrumentation - Spark 3.3.1 Documentation
Monitoring, metrics, and instrumentation guide for Spark 3.3.1.
Read more >Configuring Telegraf - InfluxData Documentation
precision: Collected metrics are rounded to the precision specified as an interval (integer + unit, ex: 1ns , 1us , 1ms , and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It isn’t, yet. 😉 And that list looks fine, just wanted to confirm what you’re running. Thanks!
@ebullient