Linux control groups host collector that detects whether the specified mountPoint is a cgroup filesystem and what version it is. The collector also collects information of the configured cgroup controllers. Since the output is a JSON object, the JSON compare analyser can be utilised. (https://github.com/replicatedhq/troubleshoot/pull/1582 PR is WIP to allow host collectors to use this analyzer)
Collector spec
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: cgroups
spec:
hostCollectors:
- cgroups:
mountPoint: /cgroup/mount # default to /sys/fs/cgroup if not defined
Description, Motivation and Context
Linux control groups host collector that detects whether the specified
mountPoint
is a cgroup filesystem and what version it is. The collector also collects information of the configured cgroup controllers. Since the output is a JSON object, the JSON compare analyser can be utilised. (https://github.com/replicatedhq/troubleshoot/pull/1582 PR is WIP to allow host collectors to use this analyzer)Collector spec
cgroup v1 results
cgroup v2 results
cgroup v1 configuration https://asciinema.org/a/v93LLPLKxgLjUXiLWRNi0SEpp
cgroup v2 configuration https://asciinema.org/a/WGxafFNfPUL4my1sQoyxJO1uy
Fixes: https://github.com/replicatedhq/troubleshoot/issues/1579
Checklist
Does this PR introduce a breaking change?