diff --git a/cmd/collector/app/flags/flags.go b/cmd/collector/app/flags/flags.go index 8b3203b853c..c77814267d7 100644 --- a/cmd/collector/app/flags/flags.go +++ b/cmd/collector/app/flags/flags.go @@ -194,9 +194,9 @@ func AddFlags(flags *flag.FlagSet) { addGRPCFlags(flags, grpcServerFlagsCfg, ports.PortToHostPort(ports.CollectorGRPC)) flags.Bool(flagCollectorOTLPEnabled, true, "Enables OpenTelemetry OTLP receiver on dedicated HTTP and gRPC ports") - addHTTPFlags(flags, otlpServerFlagsCfg.HTTP, "") + addHTTPFlags(flags, otlpServerFlagsCfg.HTTP, ":4318") corsOTLPFlags.AddFlags(flags) - addGRPCFlags(flags, otlpServerFlagsCfg.GRPC, "") + addGRPCFlags(flags, otlpServerFlagsCfg.GRPC, ":4317") flags.String(flagZipkinHTTPHostPort, "", "The host:port (e.g. 127.0.0.1:9411 or :9411) of the collector's Zipkin server (disabled by default)") flags.Bool(flagZipkinKeepAliveEnabled, true, "KeepAlive configures allow Keep-Alive for Zipkin HTTP server (enabled by default)") diff --git a/examples/hotrod/docker-compose.yml b/examples/hotrod/docker-compose.yml index 8a0e2a90368..250f78f82b8 100644 --- a/examples/hotrod/docker-compose.yml +++ b/examples/hotrod/docker-compose.yml @@ -12,10 +12,6 @@ services: - "4318:4318" environment: - LOG_LEVEL=debug - # Since v0.105 the OTEL Collector components default hostname to 'localhost'. - # However, that does not work inside a Docker container, so we listen on all IPs. - - COLLECTOR_OTLP_GRPC_HOST_PORT=0.0.0.0:4317 - - COLLECTOR_OTLP_HTTP_HOST_PORT=0.0.0.0:4318 networks: - jaeger-example hotrod: