Class RetryMetricsCollector.MetricNames
java.lang.Object
io.github.resilience4j.prometheus.collectors.RetryMetricsCollector.MetricNames
- Enclosing class:
- RetryMetricsCollector
public static class RetryMetricsCollector.MetricNames
extends java.lang.Object
Defines possible configuration for metric names.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetryMetricsCollector.MetricNames.BuilderHelps building custom instance ofRetryMetricsCollector.MetricNames. -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_RETRY_CALLS -
Method Summary
Modifier and Type Method Description static RetryMetricsCollector.MetricNames.Buildercustom()Returns a builder for creating custom metric names.java.lang.StringgetCallsMetricName()Returns the metric name for retry calls, defaults to "resilience4j_retry_calls".static RetryMetricsCollector.MetricNamesofDefaults()Returns default metric names.
-
Field Details
-
DEFAULT_RETRY_CALLS
public static final java.lang.String DEFAULT_RETRY_CALLS- See Also:
- Constant Field Values
-
-
Method Details
-
custom
Returns a builder for creating custom metric names. Note that names have default values, so only desired metrics can be renamed.- Returns:
- The builder.
-
ofDefaults
Returns default metric names.- Returns:
- The default
RetryMetricsCollector.MetricNamesinstance.
-
getCallsMetricName
public java.lang.String getCallsMetricName()Returns the metric name for retry calls, defaults to "resilience4j_retry_calls".- Returns:
- The metric name for retry calls.
-