# ERROR metrics/metrics.go:376 error getting cgroup stats: error fetching stats for controller io: error fetching IO stats: error fetching io.pressure for path /sys/fs/cgroup:: open /sys/fs/cgroup/io.pressure: no such file or directory

**URL:** <https://discuss.elastic.co/t/error-metrics-metrics-go-376-error-getting-cgroup-stats-error-fetching-stats-for-controller-io-error-fetching-io-stats-error-fetching-io-pressure-for-path-sys-fs-cgroup-open-sys-fs-cgroup-io-pressure-no-such-file-or-directory/307804>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [June 21, 2022, 9:32pm UTC](https://discuss.elastic.co/t/error-metrics-metrics-go-376-error-getting-cgroup-stats-error-fetching-stats-for-controller-io-error-fetching-io-stats-error-fetching-io-pressure-for-path-sys-fs-cgroup-open-sys-fs-cgroup-io-pressure-no-such-file-or-directory/307804 "2022-06-21T21:32:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [June 21, 2022, 9:32pm UTC](https://discuss.elastic.co/t/error-metrics-metrics-go-376-error-getting-cgroup-stats-error-fetching-stats-for-controller-io-error-fetching-io-stats-error-fetching-io-pressure-for-path-sys-fs-cgroup-open-sys-fs-cgroup-io-pressure-no-such-file-or-directory/307804/1 "2022-06-21T21:32:17Z")

</div>

Hello World!

I'm following [Run Filebeat on Docker | Filebeat Reference [7.17] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/7.17/running-on-docker.html), yet seeing following ERROR in my logs (over and over):

`filebeat | 2022-06-21T21:08:17.932Z ERROR metrics/metrics.go:376 error getting cgroup stats: error fetching stats for controller io: error fetching IO stats: error fetching io.pressure for path /sys/fs/cgroup:: open /sys/fs/cgroup/io.pressure: no such file or directory`

I'm using latest _filebeat-7.17.X_ version.

btw, I'm getting same message with metricbeat as well

`metricbeat | 2022-06-21T21:36:18.052Z ERROR metrics/metrics.go:376 error getting cgroup stats: error fetching stats for controller io: error fetching IO stats: error fetching io.pressure for path /hostfs/sys/fs/cgroup:: open /hostfs/sys/fs/cgroup/io.pressure: no such file or directory`

Please advise.

---

<div class="post-metadata">

**Author:** ![Adriann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adriann/32/77780_2.png) [@Adriann](https://discuss.elastic.co/u/Adriann)\
**Post date:** [June 21, 2022, 9:44pm UTC](https://discuss.elastic.co/t/error-metrics-metrics-go-376-error-getting-cgroup-stats-error-fetching-stats-for-controller-io-error-fetching-io-stats-error-fetching-io-pressure-for-path-sys-fs-cgroup-open-sys-fs-cgroup-io-pressure-no-such-file-or-directory/307804/2 "2022-06-21T21:44:57Z")

</div>

I think you should check [this](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/8)

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [June 22, 2022, 2:51pm UTC](https://discuss.elastic.co/t/error-metrics-metrics-go-376-error-getting-cgroup-stats-error-fetching-stats-for-controller-io-error-fetching-io-stats-error-fetching-io-pressure-for-path-sys-fs-cgroup-open-sys-fs-cgroup-io-pressure-no-such-file-or-directory/307804/3 "2022-06-22T14:51:21Z")

</div>

@Adriann , thank you for taking your time to answer my question, i really do appreciate that!

I see that it seems like they already fixed with 8.1.2+, but not in version 7 just yet and it's safe to ignore it as well as it only affects own monitoring.

thank you!

ref:

> <https://github.com/elastic/beats/issues/23267#issuecomment-1092576247>
>
> Discuss thread: https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-…status-open-proc-pid-cgroup/255371
> 
> Since https://github.com/elastic/beats/pull/21113 monitoring includes cgroup stats. However, those are hardcoded to read from \`/proc\`. This clashes with use cases where proc is available in a different location and causes the following error to be printed to the logs every 30s:
> 
> \> ERROR instance/metrics.go:285 error getting group status: open /proc/33861/cgroup: no such file or directory
> 
> Metricbeat's system module has a command-line argument, \`-system.hostfs\`, that allows to specify an alternate path to the root filesystem for these metrics.
> 
> We could have a similar flag / configuration option for the monitoring metrics.

> <https://github.com/elastic/beats/issues/23267#issuecomment-1092576247>
>
> Discuss thread: https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-…status-open-proc-pid-cgroup/255371
> 
> Since https://github.com/elastic/beats/pull/21113 monitoring includes cgroup stats. However, those are hardcoded to read from \`/proc\`. This clashes with use cases where proc is available in a different location and causes the following error to be printed to the logs every 30s:
> 
> \> ERROR instance/metrics.go:285 error getting group status: open /proc/33861/cgroup: no such file or directory
> 
> Metricbeat's system module has a command-line argument, \`-system.hostfs\`, that allows to specify an alternate path to the root filesystem for these metrics.
> 
> We could have a similar flag / configuration option for the monitoring metrics.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 20, 2022, 4:51pm UTC](https://discuss.elastic.co/t/error-metrics-metrics-go-376-error-getting-cgroup-stats-error-fetching-stats-for-controller-io-error-fetching-io-stats-error-fetching-io-pressure-for-path-sys-fs-cgroup-open-sys-fs-cgroup-io-pressure-no-such-file-or-directory/307804/4 "2022-07-20T16:51:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
