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.

Grafana not showing the metrics - call duration percentiles

See original GitHub issue

Resilience4j version: 1.4

Java version: 1.8

Grafana not showing the metrics - call duration percentiles.

I have used this config: https://github.com/resilience4j/resilience4j/blob/master/grafana_dashboard.json

Not getting this value - resilience4j_circuitbreaker_calls_seconds_bucket in prometheus metrics too.

Screenshot 2020-06-01 at 8 54 28 PM Attaching the image for the reference. Please help me out.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
RobWincommented, Jul 7, 2020

It seems you are using Spring. Don’t you use Spring Boot?

I think a micrometer configuration is missing: management.metrics.distribution.percentiles-histogram.resilience4j.circuitbreaker.calls: true

But the setting doesn’t work without Spring Boot. You have to set it in your Micrometer config.

0reactions
streetcleanercommented, Apr 27, 2021

This code emits the metric resilience4j_circuitbreaker_calls_seconds_bucket.

MeterFilter meterFilter = new MeterFilter() {
    @Override
    public DistributionStatisticConfig configure(Meter.Id id, DistributionStatisticConfig config) {
        if (id.getName().startsWith(CircuitBreakerMetricNames.DEFAULT_CIRCUIT_BREAKER_CALLS)) {
            return DistributionStatisticConfig.builder()
                    .percentilesHistogram(true)
                    .build()
                    .merge(config);
        }
        return config;
    }
};
registry.config().meterFilter(meterFilter);
Read more comments on GitHub >

github_iconTop Results From Across the Web

How summary metrics work in Prometheus | Grafana Labs
A summary is a metric type in Prometheus that can be used to monitor latencies (or other distributions like request sizes).
Read more >
Troubleshooting | Grafana Enterprise Metrics documentation
The query that follows displays the latency of the ingest requests in percentiles. In the query, replace <job> with the string that corresponds...
Read more >
Configure standard options | Grafana documentation
Options and overrides that you apply do not change the data, they change how Grafana ... then all fields with numeric values are...
Read more >
How to successfully correlate metrics, logs, and traces in ...
That means not only showing users their metrics, logs, and traces, he said, ... it's exposing a histogram of your request duration.
Read more >
Active series and DPM | Grafana Cloud documentation
Active series and DPM Grafana Cloud calculates metrics usage by looking at two ... When you stop updating or scraping a time series,...
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