# Metricbeat/docker shows different stats for logstash in container than logstash monitoring

**URL:** <https://discuss.elastic.co/t/metricbeat-docker-shows-different-stats-for-logstash-in-container-than-logstash-monitoring/192015>\
**Category:** Metrics\
**Created:** [July 24, 2019, 11:42am UTC](https://discuss.elastic.co/t/metricbeat-docker-shows-different-stats-for-logstash-in-container-than-logstash-monitoring/192015 "2019-07-24T11:42:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgreszcz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sgreszcz/32/46322_2.png) [@sgreszcz](https://discuss.elastic.co/u/sgreszcz)\
**Post date:** [July 24, 2019, 11:42am UTC](https://discuss.elastic.co/t/metricbeat-docker-shows-different-stats-for-logstash-in-container-than-logstash-monitoring/192015/1 "2019-07-24T11:42:24Z")

</div>

I’m getting weird perf stats on logstash-netflow. Seems like the docker API perf mon says it is using 1200% CPU, but the actual logstash monitoring shows 8% CPU. Also htop also show lots of CPU headroom.

 ![28](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d73bb018f2373082944516a461939a6ed01f59c3.png) ![41](https://us1.discourse-cdn.com/elastic/original/3X/4/5/4591a4df6b76ebc636e5d1f4a77cfde81f5044d1.png) ![34](https://us1.discourse-cdn.com/elastic/original/3X/6/9/69c0cf349c877ae558642601693c3dcd2c26ee83.png)

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [July 24, 2019, 1:05pm UTC](https://discuss.elastic.co/t/metricbeat-docker-shows-different-stats-for-logstash-in-container-than-logstash-monitoring/192015/2 "2019-07-24T13:05:26Z")

</div>

Hi @sgreszcz,

it's hard to determine the possible causes based on these screenshots. Here's a few things that might help narrow it down:

- Which version of metricbeat and Kibana are you running?
- What are the filter and group parameters used in the last screenshot?
- Is the logstash process the only one running in the docker container?
- Does `docker stats` report correct values for the container?

---

<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 21, 2019, 1:05pm UTC](https://discuss.elastic.co/t/metricbeat-docker-shows-different-stats-for-logstash-in-container-than-logstash-monitoring/192015/3 "2019-08-21T13:05:27Z")

</div>

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