Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker plugin not working on Amazon Linux (EC2/ECS) #503

Closed
egoldblum opened this issue Jan 10, 2016 · 0 comments
Closed

Docker plugin not working on Amazon Linux (EC2/ECS) #503

egoldblum opened this issue Jan 10, 2016 · 0 comments
Labels
bug unexpected problem or unintended behavior

Comments

@egoldblum
Copy link

Similar to #84

[ec2-user@ip-10-0-0-160 /]$ /opt/telegraf/telegraf -version
Telegraf - Version 0.2.4
[ec2-user@ip-10-0-0-160 /]$ docker -v
Docker version 1.9.1, build a34a1d5/1.9.1
[ec2-user@ip-10-0-0-160 /]$ uname -a
Linux ip-10-0-0-160 4.1.13-18.26.amzn1.x86_64 #1 SMP Mon Nov 23 05:35:56 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Per http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-install.html:

... For Amazon Linux, this path is /cgroup; for many other operating systems, this path is /sys/fs/cgroup, but you should verify the path in your specific OS documentation.
[ec2-user@ip-10-0-0-160 /]$ grep docker /var/log/telegraf/telegraf.log | tail -1
2016/01/10 23:49:20 Error in plugin [docker]: error getting docker info: open /sys/fs/cgroup/cpuacct/system.slice/docker-433bfe61b652993b2760305264e5be3fc8f8768ea47f5041d02d1fbff5761f0b.scope/cpuacct.stat: no such file or directory
[ec2-user@ip-10-0-0-160 /]$ ls /sys/fs/cgroup/
[ec2-user@ip-10-0-0-160 /]$ ls /cgroup/
blkio  cpu  cpuacct  cpuset  devices  freezer  hugetlb  memory  perf_event

The docker plugin config ought to take a base path so that the cgroup directory can be read correctly on distros that don't place it in the standard /sys/fs/cgroup
https://github.com/influxdata/telegraf/blob/master/plugins/system/ps.go#L145

@sparrc sparrc added the bug unexpected problem or unintended behavior label Jan 11, 2016
@sparrc sparrc closed this as completed in 4d0dc8b Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants