# Collectd agent ethstat error

**URL:** <https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501>\
**Category:** Beats\
**Created:** [November 9, 2016, 1:49pm UTC](https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501 "2016-11-09T13:49:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kernel\_Panic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kernel_panic/32/12294_2.png) [@Kernel\_Panic](https://discuss.elastic.co/u/Kernel_Panic)\
**Post date:** [November 9, 2016, 1:49pm UTC](https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501/1 "2016-11-09T13:49:30Z")

</div>

Hi there guys,  
Do not know if I should ask this question in here or in the docker forum, please advice.

I'm trying to gather stats from a container iface and I get this error:

[error] ethstat plugin: Reading statistics from eth0 failed: Operation not permitted

Thanks  
Regards

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 10, 2016, 9:14am UTC](https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501/2 "2016-11-10T09:14:14Z")

</div>

If you are using collectd, probably best place is you ask this in the collectd forum. Or what beat are you using?

---

<div class="post-metadata">

**Author:** ![Kernel\_Panic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kernel_panic/32/12294_2.png) [@Kernel\_Panic](https://discuss.elastic.co/u/Kernel_Panic)\
**Post date:** [November 10, 2016, 12:28pm UTC](https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501/3 "2016-11-10T12:28:25Z")

</div>

Hi Ruflin  
I decided to go with collectd for containers cuz it's easier to setup, for the rest I'm using metricbeat/filebeat integrated with ELK stack.

Thanks  
Regards

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 10, 2016, 12:47pm UTC](https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501/4 "2016-11-10T12:47:33Z")

</div>

Interesting to hear. There is already the cgroup module in Metricbeat and we are currently working on a docker module. Anything specific you were missing / looking for?

---

<div class="post-metadata">

**Author:** ![Kernel\_Panic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kernel_panic/32/12294_2.png) [@Kernel\_Panic](https://discuss.elastic.co/u/Kernel_Panic)\
**Post date:** [November 10, 2016, 12:55pm UTC](https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501/5 "2016-11-10T12:55:40Z")

</div>

Just the way I have to start the container, I don't feel comfortable doing this:

```
docker run \
  --volume=/proc:/hostfs/proc:ro \ 
  --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro \ 
  --volume=/:/hostfs:ro \ 
  --net=host 
  my/metricbeat:latest -system.hostfs=/hostfs
---

```

Collectd has lots of plugins ( a docker one also ) and found it easy to install and setup once the container is running or from a Dockerfile, but hey, not saying metricbeat is bad , I used it for other things and it's great, the dashboards are cool, i'ts just the way I wanted to monitor a container and want to do it as simple as possible..

I'd like to hear more about the docker module you mention before anyway, and when I upgrade ES to 5.x I'll want to test x-pack which looks awesome.

Thank for your time and support  
Regards

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 11, 2016, 9:58am UTC](https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501/6 "2016-11-11T09:58:51Z")

</div>

Thanks for sharing your thoughts on this. The docker module is already in master and we are currently doing quite a bit of tweaking on it: [https://github.com/elastic/beats/issues/2629](https://github.com/elastic/beats/issues/2629)

---

<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:** [November 30, 2016, 1:49pm UTC](https://discuss.elastic.co/t/collectd-agent-ethstat-error/65501/7 "2016-11-30T13:49:34Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
