Class BulkheadMetricNames

java.lang.Object
io.github.resilience4j.micrometer.tagged.BulkheadMetricNames

public class BulkheadMetricNames extends Object
Defines possible configuration for metric names.
  • Field Details

    • DEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAME

      public static final String DEFAULT_BULKHEAD_AVAILABLE_CONCURRENT_CALLS_METRIC_NAME
      See Also:
    • DEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME

      public static final String DEFAULT_BULKHEAD_MAX_ALLOWED_CONCURRENT_CALLS_METRIC_NAME
      See Also:
  • Constructor Details

    • BulkheadMetricNames

      protected BulkheadMetricNames()
  • Method Details

    • custom

      public static BulkheadMetricNames.Builder 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

      public static BulkheadMetricNames ofDefaults()
      Returns default metric names.
      Returns:
      The default BulkheadMetricNames instance.
    • getAvailableConcurrentCallsMetricName

      public String getAvailableConcurrentCallsMetricName()
      Returns the metric name for bulkhead concurrent calls, defaults to "resilience4j.bulkhead.available.concurrent.calls".
      Returns:
      The available concurrent calls metric name.
    • getMaxAllowedConcurrentCallsMetricName

      public String getMaxAllowedConcurrentCallsMetricName()
      Returns the metric name for bulkhead max available concurrent calls, defaults to "resilience4j.bulkhead.max.allowed.concurrent.calls".
      Returns:
      The max allowed concurrent calls metric name.