Class RuntimeMetrics
java.lang.Object
codes.grow.packages.otelcollector.RuntimeMetrics
- All Implemented Interfaces:
AutoCloseable
JVM runtime metrics (semantic-convention names) observed on every collection:
jvm.memory.used and jvm.memory.committed (By, jvm.memory.type heap / non_heap),
jvm.thread.count, jvm.class.count, jvm.cpu.time (s),
jvm.cpu.recent_utilization and process.uptime (s).-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Stops the observation.static RuntimeMetricsregister(io.opentelemetry.api.metrics.Meter meter) Registers the runtime metrics on a meter.
-
Method Details
-
register
Registers the runtime metrics on a meter.- Parameters:
meter- meter, usually namedOtelCollectorMetrics.RUNTIME_METER_NAME- Returns:
- a handle;
close()stops the observation
-
close
public void close()Stops the observation. Idempotent.- Specified by:
closein interfaceAutoCloseable
-