Class JvmThreadMetrics
java.lang.Object
io.micrometer.core.instrument.binder.jvm.JvmThreadMetrics
- All Implemented Interfaces:
MeterBinder
MeterBinder for JVM threads.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJvmThreadMetrics(Iterable<? extends Tag> extraTags, JvmThreadMeterConventions conventions) Deprecated.JvmThreadMetrics(Iterable<Tag> extraTags) Uses the default convention with the provided extra tags. -
Method Summary
Modifier and TypeMethodDescriptionvoidbindTo(MeterRegistry registry) static JvmThreadMetrics.Builderbuilder()Create a new builder forJvmThreadMetrics.
-
Constructor Details
-
JvmThreadMetrics
public JvmThreadMetrics() -
JvmThreadMetrics
-
JvmThreadMetrics
@Deprecated public JvmThreadMetrics(Iterable<? extends Tag> extraTags, JvmThreadMeterConventions conventions) Deprecated.usebuilder()to provide individual conventionsThe supplied extra tags are not combined with the convention. Provide a convention that applies the extra tags if that is the desired outcome. The convention only applies to some meters.- Parameters:
extraTags- extra tags to add to meters not covered by the conventionsconventions- custom conventions for applicable meters- Since:
- 1.16.0
-
-
Method Details
-
builder
Create a new builder forJvmThreadMetrics.- Returns:
- a new builder
- Since:
- 1.18.0
-
bindTo
- Specified by:
bindToin interfaceMeterBinder
-
builder()to provide individual conventions