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 void
bindTo(MeterRegistry registry)
void
close()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JvmGcMetrics
public JvmGcMetrics() -
JvmGcMetrics
-
-
Method Details
-
bindTo
- Specified by:
bindTo
in interfaceMeterBinder
-
close
public void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
-