Class JvmMemoryMetrics
java.lang.Object
io.micrometer.core.instrument.binder.jvm.JvmMemoryMetrics
- All Implemented Interfaces:
MeterBinder
Record metrics that report utilization of various memory and buffer pools.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJvmMemoryMetrics(Iterable<? extends Tag> extraTags, JvmMemoryMeterConventions conventions) Deprecated.JvmMemoryMetrics(Iterable<Tag> extraTags) Uses the default convention with the provided extra tags. -
Method Summary
Modifier and TypeMethodDescriptionvoidbindTo(MeterRegistry registry) static JvmMemoryMetrics.Builderbuilder()Create a new builder forJvmMemoryMetrics.
-
Constructor Details
-
JvmMemoryMetrics
public JvmMemoryMetrics() -
JvmMemoryMetrics
-
JvmMemoryMetrics
@Deprecated public JvmMemoryMetrics(Iterable<? extends Tag> extraTags, JvmMemoryMeterConventions conventions) Deprecated.usebuilder()to provide individual conventionsMemory metrics with extra tags and a specific convention applied to meters. The 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- these will be added to meters not covered by the conventionconventions- custom conventions for applicable metrics- Since:
- 1.16.0
-
-
Method Details
-
builder
Create a new builder forJvmMemoryMetrics.- Returns:
- a new builder
- Since:
- 1.18.0
-
bindTo
- Specified by:
bindToin interfaceMeterBinder
-
builder()to provide individual conventions