Class BulkheadMetricsCollector.MetricNames
java.lang.Object
io.github.resilience4j.prometheus.collectors.BulkheadMetricsCollector.MetricNames
- Enclosing class:
- BulkheadMetricsCollector
public static class BulkheadMetricsCollector.MetricNames
extends java.lang.Object
Defines possible configuration for metric names.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBulkheadMetricsCollector.MetricNames.BuilderHelps building custom instance ofBulkheadMetricsCollector.MetricNames. -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAMEstatic java.lang.StringDEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME -
Method Summary
Modifier and Type Method Description static BulkheadMetricsCollector.MetricNames.Buildercustom()Returns a builder for creating custom metric names.java.lang.StringgetAvailableConcurrentCallsMetricName()Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j_bulkhead_available_concurrent_calls".java.lang.StringgetMaxAllowedConcurrentCallsMetricName()Returns the metric name for bulkhead max available concurrent calls, defaults to "resilience4j_bulkhead_max_allowed_concurrent_calls".static BulkheadMetricsCollector.MetricNamesofDefaults()Returns default metric names.
-
Field Details
-
DEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAME
public static final java.lang.String DEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAME- See Also:
- Constant Field Values
-
DEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME
public static final java.lang.String DEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME- 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. -
ofDefaults
Returns default metric names. -
getAvailableConcurrentCallsMetricName
public java.lang.String getAvailableConcurrentCallsMetricName()Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j_bulkhead_available_concurrent_calls". -
getMaxAllowedConcurrentCallsMetricName
public java.lang.String getMaxAllowedConcurrentCallsMetricName()Returns the metric name for bulkhead max available concurrent calls, defaults to "resilience4j_bulkhead_max_allowed_concurrent_calls".
-