Class CpuV2
java.lang.Object
org.apache.druid.java.util.metrics.cgroups.CpuV2
Collect CPU weight, quota and usage information from cgroups v2 files.
This class provides a bridge to return Cpu.CpuMetrics compatible data from cgroups v2.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsnapshot()Take a snapshot of cgroups v2 CPU data with native microsecond precision.
-
Field Details
-
CGROUP
- See Also:
-
-
Constructor Details
-
CpuV2
-
-
Method Details
-
snapshot
Take a snapshot of cgroups v2 CPU data with native microsecond precision. This provides maximum accuracy for monitoring calculations.- Returns:
- A Cpu.CpuMetrics snapshot with native v2 microsecond data.
-