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.

Support for extending Micrometer tags

See original GitHub issue

I want to be able to extend the tags added to a gauge in the micrometer library.

But currently all classes responsible for metrics tags have a private constructor and thus cannot be easily extended.

  • TaggedRetryMetrics
  • TaggedCirciutBreakerMetrics
  • TaggedBulkheadMetrics
  • TaggedRateLimiterMetrics

Could you make the classes extendable or add a way I could provide the bean as in RetryMetricsAutoConfiguration myself that is not a closed class?

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:44 (38 by maintainers)

github_iconTop GitHub Comments

2reactions
RobWincommented, Nov 13, 2020

In Spring Boot:

resilience4j.circuitbreaker:
  tags:
    tag1: tag1Value
    tag2: tag2Value
2reactions
Romehcommented, Nov 4, 2019

@RobWin i will add MicroMeter and Prometheus tag treatment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Micrometer Metrics - Quarkus
Micrometer uses MeterFilter instances to customize the metrics emitted by MeterRegistry instances. The Micrometer extension will detect MeterFilter CDI beans ...
Read more >
Dynamic Meters and Metrics with Micrometer | by Aviad Pines
Since in Micrometer, a meter ID is defined by its name and tags (key-value pairs), the tag value determines the meter, and different...
Read more >
Metrics and Management - Spring
Now, with Micrometer, you can add MeterFilter s to the MeterRegistry to prevent some or all from being registered. You can filter out...
Read more >
Defining custom metrics in a Spring Boot application using ...
Micrometer is a dimensional metrics and monitoring facade to help ... means that you can tag your metrics with an arbitrary number of...
Read more >
Micrometer Application Monitoring
Whether the system supports metric names to be enriched with tag key/value pairs. ... public interface Timer extends Meter { ... void record(long...
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