# Metricbeat/K8s: "error getting group status: open /proc/\<PID\>/cgroup"

**URL:** <https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 13, 2020, 6:46pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371 "2020-11-13T18:46:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwhitehead](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@jwhitehead](https://discuss.elastic.co/u/jwhitehead)\
**Post date:** [November 13, 2020, 6:46pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/1 "2020-11-13T18:46:17Z")

</div>

Running Metricbeat on AKS v1.16.3, seeing the following error in logs:

`instance/metrics.go:285	error getting group status: open /proc/<PID>/cgroup: no such file or directory"`

I'm new to beats and, after several hours of searching (and fiddling with system module's "process.cgroups.enabled"), i'm getting nowhere. Any suggestions or pointers to resources would be very much appreciated.

---

<div class="post-metadata">

**Author:** ![wadhah](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wadhah](https://discuss.elastic.co/u/wadhah)\
**Post date:** [November 25, 2020, 1:55pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/2 "2020-11-25T13:55:19Z")

</div>

hello @jwhitehead I was wondering whether you have any updates as I am encountring the same error.  
Thanks

---

<div class="post-metadata">

**Author:** ![aidapsibr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aidapsibr/32/80635_2.png) [@aidapsibr](https://discuss.elastic.co/u/aidapsibr)\
**Post date:** [December 10, 2020, 10:31pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/3 "2020-12-10T22:31:33Z")

</div>

Seeing the same issue as well on AKS 1.19.3

---

<div class="post-metadata">

**Author:** ![nmertins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nmertins/32/77152_2.png) [@nmertins](https://discuss.elastic.co/u/nmertins)\
**Post date:** [December 11, 2020, 3:05pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/4 "2020-12-11T15:05:17Z")

</div>

I'm seeing the same thing on AKS v1.18 and Metricbeat 7.10.0. It seems like Metricbeat isn't respecting the `system.hostfs` flag because I can see the directory it's looking for at `/hostfs/proc/<PID>/cgroup`, but it's looking in `/proc/<PID>/cgroup`.

---

<div class="post-metadata">

**Author:** ![SVictor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/svictor/32/78067_2.png) [@SVictor](https://discuss.elastic.co/u/SVictor)\
**Post date:** [December 15, 2020, 3:28pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/5 "2020-12-15T15:28:32Z")

</div>

Hi! I have the same thing, has anyone found a solution to the problem?

---

<div class="post-metadata">

**Author:** ![Soufiane\_Zamouri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soufiane_zamouri/32/78663_2.png) [@Soufiane\_Zamouri](https://discuss.elastic.co/u/Soufiane_Zamouri)\
**Post date:** [December 18, 2020, 12:37pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/6 "2020-12-18T12:37:07Z")

</div>

Same issue, solution ?

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [December 23, 2020, 10:55am UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/8 "2020-12-23T10:55:47Z")

</div>

This error is not related to Metricbeat's system module, but to a new feature in [Beats internal monitoring.](https://www.elastic.co/guide/en/beats/metricbeat/current/monitoring.html)

The system module is still understanding the `-system.hostfs` flag and reporting metrics correctly. The only effect of this error is that the internal monitoring metrics from Metricbeat are lacking the new cgroups data.

See this issue for more information: [https://github.com/elastic/beats/issues/23267](https://github.com/elastic/beats/issues/23267)

---

<div class="post-metadata">

**Author:** ![umen](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@umen](https://discuss.elastic.co/u/umen)\
**Post date:** [January 6, 2021, 10:41am UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/9 "2021-01-06T10:41:23Z")

</div>

@adrisr  
I have the same error like the others , how can i disable this metric until the bug is fixed ?

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [January 12, 2021, 6:11pm UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/10 "2021-01-12T18:11:27Z")

</div>

Metrics reporting can be disabled by adding the following to your Beat configuration:

```auto
monitoring.enabled: false

```

This will, of course, disable all internal monitoring.

---

<div class="post-metadata">

**Author:** ![Ali\_Nazemian](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@Ali\_Nazemian](https://discuss.elastic.co/u/Ali_Nazemian)\
**Post date:** [January 20, 2021, 1:17am UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/11 "2021-01-20T01:17:18Z")

</div>

Any updates on if this issue is resolved?

---

<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:** [February 17, 2021, 3:17am UTC](https://discuss.elastic.co/t/metricbeat-k8s-error-getting-group-status-open-proc-pid-cgroup/255371/12 "2021-02-17T03:17:44Z")

</div>

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