-
Is there a way to disable the second HTTP listener on legacy endpoint 0.0.0.0:55681? At first I though this config would do the trick, but it does not: distributor:
receivers:
# see https://github.com/grafana/tempo/blob/v1.2.1/modules/distributor/config.go#L33
# see https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318 How do I disable the legacy endpoint 0.0.0.0:55681? |
Beta Was this translation helpful? Give feedback.
Answered by
mapno
Dec 17, 2021
Replies: 1 comment 2 replies
-
Hi! This is handled in the OTel receiver code. If the HTTP selected port is the default one ( if r.cfg.HTTP.Endpoint == defaultHTTPEndpoint {
r.settings.Logger.Info("Setting up a second HTTP listener on legacy endpoint " + legacyHTTPEndpoint)
// Copy the config.
cfgLegacyHTTP := r.cfg.HTTP
// And use the legacy endpoint.
cfgLegacyHTTP.Endpoint = legacyHTTPEndpoint
err = r.startHTTPServer(cfgLegacyHTTP, host)
if err != nil {
return err
}
} If you want not to listen on the legacy port, you will need to lister for HTTP in a different port (not |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rgl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! This is handled in the OTel receiver code. If the HTTP selected port is the default one (
4318
), it'll run with the legacy one (55681
) as well. See codeIf you want not to listen on the legacy port, you will need to lister for HTTP in a different port (not
4318
). Hope this helps!