Class RetryMetricsCollector
java.lang.Object
io.prometheus.client.Collector
io.github.resilience4j.prometheus.collectors.RetryMetricsCollector
public class RetryMetricsCollector
extends io.prometheus.client.Collector
Collects Retry exposed
Bulkhead.Metrics.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetryMetricsCollector.MetricNamesDefines possible configuration for metric names. -
Field Summary
-
Method Summary
Modifier and Type Method Description java.util.List<io.prometheus.client.Collector.MetricFamilySamples>collect()static RetryMetricsCollectorofRetryRegistry(RetryMetricsCollector.MetricNames names, io.github.resilience4j.retry.RetryRegistry retryRegistry)Creates a new collector with custom metric names and using givensupplieras source of retries.static RetryMetricsCollectorofRetryRegistry(io.github.resilience4j.retry.RetryRegistry retryRegistry)Creates a new collector using givenregistryas source of retries.
-
Method Details
-
ofRetryRegistry
public static RetryMetricsCollector ofRetryRegistry(RetryMetricsCollector.MetricNames names, io.github.resilience4j.retry.RetryRegistry retryRegistry)Creates a new collector with custom metric names and using givensupplieras source of retries.- Parameters:
names- the custom metric namesretryRegistry- the source of retries
-
ofRetryRegistry
public static RetryMetricsCollector ofRetryRegistry(io.github.resilience4j.retry.RetryRegistry retryRegistry)Creates a new collector using givenregistryas source of retries.- Parameters:
retryRegistry- the source of retries
-
collect
public java.util.List<io.prometheus.client.Collector.MetricFamilySamples> collect()- Specified by:
collectin classio.prometheus.client.Collector
-