Class CgroupUtil
- java.lang.Object
-
- org.apache.druid.java.util.metrics.CgroupUtil
-
public class CgroupUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMA_MATCHstatic StringCPU_SYS_USAGE_METRICstatic StringCPU_TOTAL_USAGE_METRICstatic StringCPU_USER_USAGE_METRICstatic StringDISK_READ_BYTES_METRICstatic StringDISK_READ_COUNT_METRICstatic StringDISK_WRITE_BYTES_METRICstatic StringDISK_WRITE_COUNT_METRICstatic StringSPACE_MATCHstatic StringSYSTEMstatic StringTOTALstatic StringUSER
-
Constructor Summary
Constructors Constructor Description CgroupUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longreadLongValue(CgroupDiscoverer discoverer, String cgroup, String fileName, long defaultValue)
-
-
-
Field Detail
-
SPACE_MATCH
public static final String SPACE_MATCH
-
COMMA_MATCH
public static final String COMMA_MATCH
-
TOTAL
public static final String TOTAL
- See Also:
- Constant Field Values
-
USER
public static final String USER
- See Also:
- Constant Field Values
-
SYSTEM
public static final String SYSTEM
- See Also:
- Constant Field Values
-
CPU_TOTAL_USAGE_METRIC
public static final String CPU_TOTAL_USAGE_METRIC
- See Also:
- Constant Field Values
-
CPU_USER_USAGE_METRIC
public static final String CPU_USER_USAGE_METRIC
- See Also:
- Constant Field Values
-
CPU_SYS_USAGE_METRIC
public static final String CPU_SYS_USAGE_METRIC
- See Also:
- Constant Field Values
-
DISK_READ_BYTES_METRIC
public static final String DISK_READ_BYTES_METRIC
- See Also:
- Constant Field Values
-
DISK_READ_COUNT_METRIC
public static final String DISK_READ_COUNT_METRIC
- See Also:
- Constant Field Values
-
DISK_WRITE_BYTES_METRIC
public static final String DISK_WRITE_BYTES_METRIC
- See Also:
- Constant Field Values
-
DISK_WRITE_COUNT_METRIC
public static final String DISK_WRITE_COUNT_METRIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
readLongValue
public static long readLongValue(CgroupDiscoverer discoverer, String cgroup, String fileName, long defaultValue)
-
-