55 public static Metrics getInstance() { |
55 public static Metrics getInstance() { |
56 return INSTANCE; |
56 return INSTANCE; |
57 } |
57 } |
58 |
58 |
59 private static Metrics initContainerSubSystems() { |
59 private static Metrics initContainerSubSystems() { |
|
60 if (!isUseContainerSupport()) { |
|
61 return null; |
|
62 } |
60 Metrics metrics = new Metrics(); |
63 Metrics metrics = new Metrics(); |
61 |
64 |
62 /** |
65 /** |
63 * Find the cgroup mount points for subsystems |
66 * Find the cgroup mount points for subsystems |
64 * by reading /proc/self/mountinfo |
67 * by reading /proc/self/mountinfo |