question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client Metrics does not use template URI variables

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ebullientcommented, Feb 22, 2021

It isn’t, yet. 😉 And that list looks fine, just wanted to confirm what you’re running. Thanks!

1reaction
jmartiskcommented, Feb 22, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found