-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to specify a path prefix for OTLP HTTP receiver #7511
Comments
Interested in this due to issues with the current operator ingress implementation as mentioned here: open-telemetry/opentelemetry-operator#902 (comment). This is something we need, and could take it on now if no one is working on it yet. |
Supports multiple receivers of the same kind running behind a reverse proxy/ingress. Fixes open-telemetry#7511
Supports multiple otlp recivers running behind a reverse proxy/ingress by setting up different paths. Fixes open-telemetry#7511
Supports multiple otlp recivers running behind a reverse proxy/ingress by setting up different paths. Fixes open-telemetry#7511
I would like this to be somehow consistent with exporter options, see https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/otlphttpexporter/config.go#L26? |
Supports multiple otlp recivers running behind a reverse proxy/ingress by setting up different paths. Fixes open-telemetry#7511
Supports multiple otlp recivers running behind a reverse proxy/ingress by setting up different paths. Fixes open-telemetry#7511
Supports multiple otlp recivers running behind a reverse proxy/ingress by setting up different paths. Fixes open-telemetry#7511
Supports multiple otlp http receivers running behind a reverse proxy/ingress. Fixes #7511 Updated existing tests to account for new parameter.
When running the OTLP receiver behind a regular proxy or gateway, it's often easier to have consistent URLs between the proxy and the backend (OTLP receiver, in this case). Typically, those proxies would be used for multiple backends, each one under a specific path prefix. For instance,
/otlp
would be used by the proxy to pick the collector with the OTLP HTTP receiver at the backend. In practice this means URLs likehttps://proxy.example.com/otlp/v1/traces
.To make it easier to configure an environment like that, I would like to propose a new configuration option, allowing users to specify a path prefix for the OTLP HTTP receiver, likely in the following places:
opentelemetry-collector/receiver/otlpreceiver/otlp.go
Line 203 in 7c98234
opentelemetry-collector/receiver/otlpreceiver/otlp.go
Line 228 in 7c98234
opentelemetry-collector/receiver/otlpreceiver/otlp.go
Line 253 in 7c98234
The text was updated successfully, but these errors were encountered: