How can i change MY_POD_IP via external pod service_name #2024
Unanswered
sonerkoylu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I used before opentelemetry on docker. It was so easy. But now, i am trying to run my containers on k8s a lot of bad experience with opentelemetry.
When i changed the MY_POD_IP via pod service_name the app could not connect.
Error Message:
Error: cannot start pipelines: listen tcp 10.43.220.21:9411: bind: cannot assign requested address
collector server run finished with error: cannot start pipelines: listen tcp 10.43.220.21:9411: bind: cannot assign requested address
docker(working):
`receivers:
otlp:
protocols:
http:
grpc:
processors:
batch metrics before sending to reduce API usage
batch:
exporters:
logging:
loglevel: debug
prometheus:
endpoint: "0.0.0.0:8889"
const_labels:
label1: spring
otlp:
endpoint: "http://tempo:4317" # tempo container host and port
tls:
insecure: true
loki:
endpoint: "http://loki:3100/loki/api/v1/push"
zipkin:
endpoint: "http://zipkin:9411/api/v2/spans"
format: proto
jaeger:
endpoint: "http://jaeger-service:14250"
tls:
insecure: true
extensions:
responsible for responding to health check calls on behalf of the collector.
health_check:
fetches the collector’s performance data
pprof:
serves as an http endpoint that provides live debugging data about instrumented components.
zpages:
service:
extensions: [health_check, pprof, zpages]
pipelines:
# for now we only interested about metrics...
metrics:
receivers: [otlp]
processors: [batch]
exporters: [prometheus]
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp,zipkin,jaeger] # name here should match the exporter name for tempo which is otlp
logs:
receivers: [otlp]
exporters: [loki,logging]`
k8s(not working):
Beta Was this translation helpful? Give feedback.
All reactions