opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

[confighttp] Support http+unix

Open atoulme opened this issue 2 years ago • 5 comments
trafficstars

Is your feature request related to a problem? Please describe. In some cases, I want to offer HTTP connection over a socket rather than a tcp port.

Describe the solution you'd like Support unix socket style server support, such as

http+unix:/var/run/otel.socket:/v1/traces

atoulme avatar Oct 25 '23 05:10 atoulme

What component(s) do we want to use this in?

mx-psi avatar Oct 25 '23 09:10 mx-psi

I would like to use this with the internal metrics endpoint so it doesn't use a port on the host. I also want to use this for OTLP on hosts.

atoulme avatar Oct 25 '23 16:10 atoulme

This was just asked about on the CNCF slack :)

atoulme avatar Oct 27 '23 21:10 atoulme

Can loopback (localhost) not work? Or is it the case that you don't want to use any kind of port?

utezduyar avatar Oct 29 '23 03:10 utezduyar

localhost is not as secure as using a socket bound to file permissions, and we run into port conflicts when we have multiple collectors running - we have the case where the collector is now so popular it is used by different products for different purposes, and tends to clash over port 8888.

atoulme avatar Oct 30 '23 21:10 atoulme