haproxytech / haproxy-consul-connect

HaProxy Connector for Consul Connect. Enables Service Mesh with Consul and HaProxy using TLS and Consul Discovery
Apache License 2.0
95 stars 20 forks source link

MINOR: stats: Add a config option to set Consul service address #83

Closed fdomain closed 2 years ago

fdomain commented 2 years ago

In some cases, especially in a containers environment with a single Consul agent running on the host, it is mandatory to specify the service address otherwise it will point to an incorrect IP, and the check will be performed on the host instead of the container.

fdomain commented 2 years ago

The stats-addr is actually used for the stats listen address (which could be 0.0.0.0) and that's not what need to be registered on the consul service.