opentelemetry-collector
opentelemetry-collector copied to clipboard
[confighttp] Support http+unix
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
What component(s) do we want to use this in?
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.
This was just asked about on the CNCF slack :)
Can loopback (localhost) not work? Or is it the case that you don't want to use any kind of port?
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.