I followed the instructions here to configure HA Proxy for socket mode monitoring by Dynatrace.
I already had HA Proxy configured with a socket for administration (stats socket /var/run/haproxy/haproxy.sock mode 600 level admin). For security reasons, I don’t want the Dynatrace plugin to access the admin socket.
Unfortunately, Dynatrace couldn’t connect when my admin socket line was in the config file, the error was “Cannot connect to the stats socket. Please check file permissions.”
Once I removed my admin socket, the plugin worked fine.
Does anyone know a way to have both and administration socket, and monitoring sockets available?
Cheers,
Adam