# Metricbeat Error in Docker Module

**URL:** https://discuss.elastic.co/t/metricbeat-error-in-docker-module/190564
**Category:** Beats
**Tags:** metricbeat
**Created:** [July 15, 2019, 2:57pm UTC](https://discuss.elastic.co/t/metricbeat-error-in-docker-module/190564 "2019-07-15T14:57:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DougR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dougr/32/48095_2.png) [@DougR](https://discuss.elastic.co/u/DougR)
#### Post date: [July 15, 2019, 2:57pm UTC](https://discuss.elastic.co/t/metricbeat-error-in-docker-module/190564/1 "2019-07-15T14:57:56Z")

</div>

We have installed Metricbeat 7.1.1 on the servers in our Docker cluster and enabled the `docker` module with the following configuration:

```
- module: docker
  metricsets:
    - container
    - cpu
    - diskio
    - event
    - healthcheck
    - info
    - memory
    - network
  period: 10s
  hosts: ["unix:///var/run/docker.sock"]

  # If set to true, replace dots in labels with `_`.
  #labels.dedot: false

  # To connect to Docker over TLS you must specify a client and CA certificate.
  #ssl:
    #certificate_authority: "/etc/pki/root/ca.pem"
    #certificate: "/etc/pki/client/cert.pem"
    #key: "/etc/pki/client/cert.key"

```

...in other words, the standard `docker` module config, with the metricsets uncommented and enabled. However, I get the following error, and no metrics report in:

```
2019-07-15T08:55:44.856-0500 ERROR cpu/helper.go:143 Error calculating CPU time change for docker module: new stats value (0) is lower than the old one(20157987100000000)

```

When I comment out `cpu` from `metricsets` and do a restart, I don't get any errors and the metricbeat reports in as expected for the `docker` module.

---

<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 12, 2019, 2:58pm UTC](https://discuss.elastic.co/t/metricbeat-error-in-docker-module/190564/2 "2019-08-12T14:58:08Z")

</div>

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