Open soichih opened 8 years ago
Maybe sensu-client user cannot execute docker stats?
sudo -u sensu /usr/bin/docker ps
Is this still any issue for you?
By default this plugin connects to port 2376, the TLS port. If your docker daemon is listening on port 2375 you'll need to adjust your check i.e. metrics-docker-container.rb -H tcp://127.0.1.1:2375
. You can also use the unix socket metrics-docker-container.rb -H unix:///var/run/docker.sock
. We should probably change the default port to 2375 as that's what all the other plugins use.
Just in case anyone else comes across this, adding sensu to the 'docker' group and using the unix socket works for me.
I have a working docker engine on my machine, and I can do docker ps / info etc..
But.. when I run metrics-docker-container.rb I get following error message.
I tried "-H localhost" but that didn't fix it. What am I missing?