Class JvmGcMetrics
java.lang.Object
io.micrometer.core.instrument.binder.jvm.JvmGcMetrics
- All Implemented Interfaces:
MeterBinder,java.lang.AutoCloseable
@NonNullApi @NonNullFields public class JvmGcMetrics extends java.lang.Object implements MeterBinder, java.lang.AutoCloseable
Record metrics that report a number of statistics related to garbage
collection emanating from the MXBean and also adds information about GC causes.
- See Also:
GarbageCollectorMXBean
-
Constructor Summary
Constructors Constructor Description JvmGcMetrics()JvmGcMetrics(java.lang.Iterable<Tag> tags) -
Method Summary
Modifier and Type Method Description voidbindTo(MeterRegistry registry)voidclose()
-
Constructor Details
-
JvmGcMetrics
public JvmGcMetrics() -
JvmGcMetrics
-
-
Method Details
-
bindTo
- Specified by:
bindToin interfaceMeterBinder
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable
-