Class ClassLoaderMetrics
java.lang.Object
io.micrometer.core.instrument.binder.jvm.ClassLoaderMetrics
- All Implemented Interfaces:
MeterBinder
Binder providing metrics related to JVM class loading.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClass loader metrics with the default convention.ClassLoaderMetrics(JvmClassLoadingMeterConventions conventions) Deprecated.ClassLoaderMetrics(Iterable<Tag> extraTags) Class loader metrics using the default convention with extra tags added. -
Method Summary
Modifier and TypeMethodDescriptionvoidbindTo(MeterRegistry registry) static ClassLoaderMetrics.Builderbuilder()Create a new builder forClassLoaderMetrics.
-
Constructor Details
-
ClassLoaderMetrics
public ClassLoaderMetrics()Class loader metrics with the default convention. -
ClassLoaderMetrics
Class loader metrics using the default convention with extra tags added. If a conflict occurs between extra tags and convention tags, the convention tag takes precedence.- Parameters:
extraTags- additional tags to add to metrics registered by this binder
-
ClassLoaderMetrics
Deprecated.usebuilder()to provide individual conventionsClass loader metrics registered by this binder will use the provided convention.- Parameters:
conventions- custom convention to apply- Since:
- 1.16.0
-
-
Method Details
-
builder
Create a new builder forClassLoaderMetrics.- Returns:
- a new builder
- Since:
- 1.18.0
-
bindTo
- Specified by:
bindToin interfaceMeterBinder
-
builder()to provide individual conventions