Class SystemMetrics
- java.lang.Object
-
- co.elastic.apm.agent.context.AbstractLifecycleListener
-
- co.elastic.apm.agent.metrics.builtin.SystemMetrics
-
- All Implemented Interfaces:
LifecycleListener
public class SystemMetrics extends AbstractLifecycleListener
Record metrics related to the CPU and memory, gathered by the JVM.Supported JVM implementations:
- HotSpot
- J9
This implementation is based on io.micrometer.core.instrument.binder.system.ProcessorMetrics, under Apache License 2.0
-
-
Constructor Summary
Constructors Constructor Description SystemMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart(ElasticApmTracer tracer)Callback for when theElasticApmTracerstarts.-
Methods inherited from class co.elastic.apm.agent.context.AbstractLifecycleListener
init, pause, resume, stop
-
-
-
-
Method Detail
-
start
public void start(ElasticApmTracer tracer)
Description copied from interface:LifecycleListenerCallback for when theElasticApmTracerstarts.- Specified by:
startin interfaceLifecycleListener- Overrides:
startin classAbstractLifecycleListener- Parameters:
tracer- The tracer.
-
-