# Docker fields documentation

**URL:** <https://discuss.elastic.co/t/docker-fields-documentation/91225>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 29, 2017, 5:30am UTC](https://discuss.elastic.co/t/docker-fields-documentation/91225 "2017-06-29T05:30:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stickperson](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@stickperson](https://discuss.elastic.co/u/stickperson)\
**Post date:** [June 29, 2017, 5:30am UTC](https://discuss.elastic.co/t/docker-fields-documentation/91225/1 "2017-06-29T05:30:39Z")

</div>

I just setup metricbeat using the docker module and noticed that `docker.memory.usage.pct` seemed off by a factor of 100. However, `docker.cpu.total.pct` is accurate. The [docker fields docs](https://www.elastic.co/guide/en/beats/metricbeat/current/exported-fields-docker.html) don't mention the memory percentage scale being from 0-1. The [[https://github.com/Ingensi/dockbeat/blob/develop/docs/fields.asciidoc#exported-fields-memory](https://github.com/Ingensi/dockbeat/blob/develop/docs/fields.asciidoc#exported-fields-memory)]([http://dockbeat](http://dockbeat) docs) do mention this though.

I propose at the very least updating the docs. It might even be better to change `docker.memory.usage.pct` to an actual percentage.

Thoughts?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 4, 2017, 8:37pm UTC](https://discuss.elastic.co/t/docker-fields-documentation/91225/2 "2017-07-04T20:37:35Z")

</div>

It looks like the "pct" fields in the memory metricset are not properly marked as percentages whereas the ones in the cpu metricset set are properly marked.

For comparison, here's the [CPU](https://github.com/elastic/beats/blob/master/metricbeat/module/docker/cpu/_meta/fields.yml#L8) and here's [memory](https://github.com/elastic/beats/blob/master/metricbeat/module/docker/memory/_meta/fields.yml#L26-L29). You can see that `format: percentage` is missing from all the "pct" fields. Could you please open a new issue on Github for this (or a pull request 🙂 ).

---

<div class="post-metadata">

**Author:** ![stickperson](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@stickperson](https://discuss.elastic.co/u/stickperson)\
**Post date:** [July 6, 2017, 1:15am UTC](https://discuss.elastic.co/t/docker-fields-documentation/91225/3 "2017-07-06T01:15:57Z")

</div>

Sure. Here's the PR: [https://github.com/elastic/beats/pull/4619](https://github.com/elastic/beats/pull/4619)

---

<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:** [August 3, 2017, 1:16am UTC](https://discuss.elastic.co/t/docker-fields-documentation/91225/4 "2017-08-03T01:16:30Z")

</div>

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