public class TaggedBulkheadMetrics
extends java.lang.Object
implements io.micrometer.core.instrument.binder.MeterBinder
metrics.
The main difference from BulkheadMetrics is that this binder uses tags
to distinguish between metrics.| Modifier and Type | Class and Description |
|---|---|
static class |
TaggedBulkheadMetrics.MetricNames
Defines possible configuration for metric names.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindTo(io.micrometer.core.instrument.MeterRegistry registry) |
static TaggedBulkheadMetrics |
ofBulkheadRegistry(io.github.resilience4j.bulkhead.BulkheadRegistry registry)
Creates a new binder that uses given
registry as source of bulkheads. |
static TaggedBulkheadMetrics |
ofBulkheadRegistry(TaggedBulkheadMetrics.MetricNames names,
io.github.resilience4j.bulkhead.BulkheadRegistry registry)
Creates a new binder defining custom metric names and
using given
registry as source of bulkheads. |
public static TaggedBulkheadMetrics ofBulkheadRegistry(io.github.resilience4j.bulkhead.BulkheadRegistry registry)
registry as source of bulkheads.registry - the source of bulkheadspublic static TaggedBulkheadMetrics ofBulkheadRegistry(TaggedBulkheadMetrics.MetricNames names, io.github.resilience4j.bulkhead.BulkheadRegistry registry)
registry as source of bulkheads.names - custom names of the metricsregistry - the source of bulkheadspublic void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
bindTo in interface io.micrometer.core.instrument.binder.MeterBinder