You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GCTime - Approximate accumulated collection elapsed time in ms
Name
gc.time
Type
Gauge
Unit
Seconds
Multi
true
Tags
{name=%s}
Description
Displays the approximate accumulated collection elapsed time in seconds. This attribute displays -1 if the collection elapsed time is undefined for this collector. The Java virtual machine implementation may use a high resolution timer to measure the elapsed time. This attribute may display the same value even if the collection count has been incremented if the collection elapsed time is very short.
There can be multiple garbage collectors active that are assigned to different memory pools. The %s should be substituted with the name of the garbage collector. The MicroProfile Metrics runtime will need to convert the metric’s value to seconds if the value is provided in a different unit.
The text was updated successfully, but these errors were encountered:
In the Micrometer Base Metrics implementation, the Garbage Collection Time is being registered as a Counter Metric Type, instead of a Gauge.
https://github.com/smallrye/smallrye-metrics/blob/5dedbc257fefe4d7b5b275f91c217b5de9e08717/implementation/src/main/java/io/smallrye/metrics/base/LegacyBaseMetrics.java#L86C29-L86C29
In the MicroProfile Metrics Specification, it is listed that the GCTime metric type should be Gauge.
https://download.eclipse.org/microprofile/microprofile-metrics-5.0.1/microprofile-metrics-spec-5.0.1.html#_general_jvm_stats
GCTime - Approximate accumulated collection elapsed time in ms
The text was updated successfully, but these errors were encountered: