Skip to content

dogstatsd: do not append STATSD_PORT to unix socket addresses - #1288

Open
cvas22 wants to merge 1 commit into
envoyproxy:mainfrom
cvas22:fix/1223-dogstatsd-unix-socket
Open

cvas22 wants to merge 1 commit into
envoyproxy:mainfrom
cvas22:fix/1223-dogstatsd-unix-socket

Conversation

@cvas22

@cvas22 cvas22 commented Oct 23, 2026

Copy link
Copy Markdown

Fixes #1223

With USE_DOG_STATSD=true the sink always built the client address as STATSD_HOST:STATSD_PORT, so a unix://, unixgram:// or unixstream:// host became an invalid path such as unix:///var/run/datadog/dsd.socket:8125 and stats were dropped silently.

Socket addresses are now passed to the DogStatsD client unchanged and STATSD_PORT is ignored for them. Host/port addresses are built as before. Added a unit test for the address helper and a short note in the README.

Tested with go test ./src/godogstats.

Fixes envoyproxy#1223.

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DogStatsD sink appends STATSD_PORT to unix:// addresses, breaking Unix Domain Socket support

1 participant