Class ThreadPoolBulkheadMetricsCollector.MetricNames
java.lang.Object
io.github.resilience4j.prometheus.collectors.ThreadPoolBulkheadMetricsCollector.MetricNames
- Enclosing class:
- ThreadPoolBulkheadMetricsCollector
public static class ThreadPoolBulkheadMetricsCollector.MetricNames
extends java.lang.Object
Defines possible configuration for metric names.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThreadPoolBulkheadMetricsCollector.MetricNames.BuilderHelps building custom instance ofThreadPoolBulkheadMetricsCollector.MetricNames. -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_BULKHEAD_AVAILABLE_QUEUE_CAPACITY_NAMEstatic java.lang.StringDEFAULT_BULKHEAD_CURRENT_THREAD_POOL_SIZE_NAME -
Method Summary
Modifier and Type Method Description static ThreadPoolBulkheadMetricsCollector.MetricNames.Buildercustom()Returns a builder for creating custom metric names.java.lang.StringgetAvailableQueueCapacityName()Returns the metric name for bulkhead max available concurrent calls, defaults to "resilience4j_thread_pool_bulkhead_available_queue_capacity".java.lang.StringgetCurrentThreadPoolSizeName()Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j_thread_pool_bulkhead_current_thread_pool_size".static ThreadPoolBulkheadMetricsCollector.MetricNamesofDefaults()Returns default metric names.
-
Field Details
-
DEFAULT_BULKHEAD_CURRENT_THREAD_POOL_SIZE_NAME
public static final java.lang.String DEFAULT_BULKHEAD_CURRENT_THREAD_POOL_SIZE_NAME- See Also:
- Constant Field Values
-
DEFAULT_BULKHEAD_AVAILABLE_QUEUE_CAPACITY_NAME
public static final java.lang.String DEFAULT_BULKHEAD_AVAILABLE_QUEUE_CAPACITY_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. -
getCurrentThreadPoolSizeName
public java.lang.String getCurrentThreadPoolSizeName()Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j_thread_pool_bulkhead_current_thread_pool_size". -
getAvailableQueueCapacityName
public java.lang.String getAvailableQueueCapacityName()Returns the metric name for bulkhead max available concurrent calls, defaults to "resilience4j_thread_pool_bulkhead_available_queue_capacity".
-