Skip to content
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

Parameterize listen host and override when in container #6231

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmd/jaeger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ FROM $base_image AS release
ARG TARGETARCH
ARG USER_UID=10001

ENV JAEGER_LISTEN_HOST=0.0.0.0

# Sampling config HTTP
EXPOSE 5778

Expand Down Expand Up @@ -53,6 +55,8 @@ FROM $debug_image AS debug
ARG TARGETARCH=amd64
ARG USER_UID=10001

ENV JAEGER_LISTEN_HOST=0.0.0.0

# Sampling config HTTP
EXPOSE 5778

Expand Down
18 changes: 9 additions & 9 deletions cmd/jaeger/internal/all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ service:
service.name: jaeger
metrics:
level: detailed
address: 0.0.0.0:8888
address: "${env:JAEGER_LISTEN_HOST:-localhost}:8888"
logs:
level: info
# TODO Initialize telemetery tracer once OTEL released new feature.
Expand All @@ -35,14 +35,14 @@ extensions:
# sampling_store: some_store
# initial_sampling_probability: 0.1
http:
endpoint: "0.0.0.0:5778"
endpoint: "${env:JAEGER_LISTEN_HOST:-localhost}:5778"
grpc:
endpoint: "0.0.0.0:5779"
endpoint: "${env:JAEGER_LISTEN_HOST:-localhost}:5779"

healthcheckv2:
use_v2: true
http:
endpoint: "0.0.0.0:13133"
endpoint: "${env:JAEGER_LISTEN_HOST:-localhost}:13133"
grpc:

expvar:
Expand All @@ -52,19 +52,19 @@ receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
endpoint: "${env:JAEGER_LISTEN_HOST:-localhost}:4317"
http:
endpoint: "0.0.0.0:4318"
endpoint: "${env:JAEGER_LISTEN_HOST:-localhost}:4318"

jaeger:
protocols:
grpc:
endpoint: "0.0.0.0:14250"
endpoint: "${env:JAEGER_LISTEN_HOST:-localhost}:14250"
thrift_http:
endpoint: "0.0.0.0:14268"
endpoint: "${env:JAEGER_LISTEN_HOST:-localhost}:14268"

zipkin:
endpoint: "0.0.0.0:9411"
endpoint: "${env:JAEGER_LISTEN_HOST:-localhost}:9411"

processors:
batch:
Expand Down
Loading