Class ProcFsReader
java.lang.Object
org.apache.druid.java.util.metrics.ProcFsReader
Fetches data from top-level procfs files for metrics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads the boot ID from the boot_id path, which is just a UUID.longReads the cpuinfo path (example in src/test/resources/cpuinfo) and counts the number of processors.
-
Constructor Details
-
ProcFsReader
-
-
Method Details
-
getBootId
Reads the boot ID from the boot_id path, which is just a UUID.- Returns:
- The boot UUID.
-
getProcessorCount
public long getProcessorCount()Reads the cpuinfo path (example in src/test/resources/cpuinfo) and counts the number of processors.- Returns:
- the number of processors.
-