Class TaggedBulkheadMetrics

java.lang.Object
io.github.resilience4j.micrometer.tagged.TaggedBulkheadMetrics
All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder

public class TaggedBulkheadMetrics extends Object implements io.micrometer.core.instrument.binder.MeterBinder
A micrometer binder that is used to register Bulkhead exposed metrics.
  • Field Details

  • Method Details

    • ofBulkheadRegistry

      public static TaggedBulkheadMetrics ofBulkheadRegistry(io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry)
      Creates a new binder that uses given registry as source of bulkheads.
      Parameters:
      bulkheadRegistry - the source of bulkheads
      Returns:
      The TaggedBulkheadMetrics instance.
    • ofBulkheadRegistry

      public static TaggedBulkheadMetrics ofBulkheadRegistry(BulkheadMetricNames names, io.github.resilience4j.bulkhead.BulkheadRegistry bulkheadRegistry)
      Creates a new binder defining custom metric names and using given registry as source of bulkheads.
      Parameters:
      names - custom names of the metrics
      bulkheadRegistry - the source of bulkheads
      Returns:
      The TaggedBulkheadMetrics instance.
    • bindTo

      public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
      Specified by:
      bindTo in interface io.micrometer.core.instrument.binder.MeterBinder
    • addMetrics

      protected void addMetrics(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.github.resilience4j.bulkhead.Bulkhead bulkhead)