I was having the same problem as listed on this closed issue: https://github.com/influxdata/telegraf/issues/2307
After reading the response on that issue I looked at the permissions for the
haproxy socket. This is what I saw:
$ ll /var/run/haproxy/ srwxr-xr-x 1 root haproxy 0 Jan 21 18:06 socket=
It is world readable. Should be good, right? Apparently not.
I decided to
sudo chmod 777 /var/run/haproxy/socket and reloaded
telegraf. That worked. It appears that
telegraf wants write permissions on the socket. Why is that?
How are others giving adequate access to socket files? Adding the
telegraf user to the service group?