Package io.micrometer.health
Class HealthMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.simple.SimpleMeterRegistry
io.micrometer.health.HealthMeterRegistry
@Incubating(since="1.6.0")
public class HealthMeterRegistry
extends io.micrometer.core.instrument.simple.SimpleMeterRegistry
Configured with a set of queries, provides an overall health indicator given a set of
service level objectives.
For efficiency, this registry automatically denies all metrics that aren't part of the definition of a service level objective.
Service level objectives can specify one or more MeterBinder
that they require
to be registered in order to perform their tests. These are automatically bound at
construction time.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.MeterRegistry.Config, io.micrometer.core.instrument.MeterRegistry.More
-
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock
-
Constructor Summary
ModifierConstructorDescriptionprotected
HealthMeterRegistry
(HealthConfig config, Collection<ServiceLevelObjective> serviceLevelObjectives, Collection<io.micrometer.core.instrument.config.MeterFilter> serviceLevelObjectiveFilters, io.micrometer.core.instrument.Clock clock, ThreadFactory threadFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthMeterRegistry.Builder
builder
(HealthConfig config) void
close()
protected TimeUnit
void
start
(ThreadFactory threadFactory) void
stop()
Methods inherited from class io.micrometer.core.instrument.simple.SimpleMeterRegistry
defaultHistogramConfig, getMetersAsString, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter, newTimer
Methods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, meterRegistrationFailed, more, newLongTaskTimer, newTimeGauge, remove, remove, removeByPreFilterId, summary, summary, timer, timer
-
Constructor Details
-
HealthMeterRegistry
protected HealthMeterRegistry(HealthConfig config, Collection<ServiceLevelObjective> serviceLevelObjectives, Collection<io.micrometer.core.instrument.config.MeterFilter> serviceLevelObjectiveFilters, io.micrometer.core.instrument.Clock clock, ThreadFactory threadFactory)
-
-
Method Details
-
getBaseTimeUnit
- Overrides:
getBaseTimeUnit
in classio.micrometer.core.instrument.simple.SimpleMeterRegistry
-
builder
-
getServiceLevelObjectives
-
start
-
stop
public void stop() -
close
public void close()- Overrides:
close
in classio.micrometer.core.instrument.MeterRegistry
-