When APM Server runs inside a container `cgroup` stats should be collected for stack monitoring. **Related issues:** https://github.com/elastic/apm/issues/291 [Report cgroup stats if running in container](https://github.com/elastic/beats/issues/14691) [Support CgroupsV2 in processors and Metricbeat](https://github.com/elastic/beats/issues/16958)
When APM Server runs inside a container
cgroupstats should be collected for stack monitoring.Related issues:
elastic/apm#291
Report cgroup stats if running in container
Support CgroupsV2 in processors and Metricbeat