telegraf report "Cannot connect to the Docker daemon" afer telegraf enable input plugin docker
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi Guys,
telegraf have a input plugin "docker" which can monitor docker container activity or event in one host,I add config in telegraf.conf as following:
[[inputs.docker]]
interval = "60s"
endpoint = "unix:/
container_names = []
timeout = "30s"
perdevice = true
total = false
but found errors happened.
Running command: 'telegraf -config /etc/telegraf/
2017-10-
2017-10-
2017-10-
2017-10-
2017-10-
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
2017-10-
Changed in kolla: | |
status: | New → Invalid |
Hi, you need to allow remote API connections to docker daemon.
Example of ExecStart systemd service for docker. The IP is the host IP or allow 0.0.0.0 to all IPs.
ExecStart= /usr/bin/ dockerd -H tcp://192. 168.100. 244:2375 -H unix:// /var/run/ docker. sock
Regards