# Kibana shows 0 CPU usage if cgroups stats enabled

**URL:** <https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239>\
**Category:** Kibana\
**Created:** [August 16, 2017, 10:55am UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239 "2017-08-16T10:55:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vb4t](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vb4t](https://discuss.elastic.co/u/vb4t)\
**Post date:** [August 16, 2017, 10:55am UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239/1 "2017-08-16T10:55:52Z")

</div>

Hello. If I switch Kibana to cgroup stats with "xpack.monitoring.ui.container.elasticsearch.enabled: true" config, I see just 0% CPU usage for all elasticsearch nodes. Kibana, Logstash and Elasticsearch are running in docker containers, cgroup path overrides are in place for kibana (--cpu.cgroup.path.override=/ --cpuacct.cgroup.path.override=/) and elasticsearch (es.cgroups.hierarchy.override=/). Am I missing some config?

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [August 17, 2017, 7:12pm UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239/2 "2017-08-17T19:12:37Z")

</div>

What version of the stack are you on?

---

<div class="post-metadata">

**Author:** ![vb4t](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vb4t](https://discuss.elastic.co/u/vb4t)\
**Post date:** [August 17, 2017, 8:20pm UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239/3 "2017-08-17T20:20:11Z")

</div>

5.5.0

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [August 17, 2017, 9:07pm UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239/4 "2017-08-17T21:07:14Z")

</div>

If you run this in your Kibana Dev Tools \> Console;  
`GET .monitoring-es-*/_mapping`

and then see if that mapping includes `cfs_quota_micros`

---

<div class="post-metadata">

**Author:** ![vb4t](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vb4t](https://discuss.elastic.co/u/vb4t)\
**Post date:** [August 18, 2017, 1:02pm UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239/5 "2017-08-18T13:02:16Z")

</div>

Yes, there is:

```
...
"os": {
                "properties": {
                  "cgroup": {
                    "properties": {
                      "cpu": {
                        "properties": {
                          "cfs_quota_micros": {
                            "type": "long"
                          },
...
```

---

<div class="post-metadata">

**Author:** ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)\
**Post date:** [August 18, 2017, 5:10pm UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239/6 "2017-08-18T17:10:00Z")

</div>

Hi @vb4t,

Are you using any type of throttling within the ES containers? If not, then I suggest just disabling this setting (going back to the default) and using the process-level CPU percentage.

We are in the middle of updating our documentation, so this should hopefully be clearer in the future, but unless you have a quota and therefore throttle the process, then there is no advantage to monitoring Cgroup CPU usage.

Hope that helps,  
Chris

---

<div class="post-metadata">

**Author:** ![vb4t](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vb4t](https://discuss.elastic.co/u/vb4t)\
**Post date:** [August 23, 2017, 5:15am UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239/7 "2017-08-23T05:15:32Z")

</div>

Hello. Currently I do not use throttling. But in the near future I want to use it.

---

<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:** [September 20, 2017, 5:15am UTC](https://discuss.elastic.co/t/kibana-shows-0-cpu-usage-if-cgroups-stats-enabled/97239/8 "2017-09-20T05:15:43Z")

</div>

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