Hello Team, Is there any way through which the my...
# support
r
Hello Team, Is there any way through which the my-release-signoz-otel-collector-pod ip will automatically gets updated under k8s deployment file, when my-release-signoz-otel-collector-pod gets restarted with any reason. I am using below key value parameter in my deployment files to capture signoz information. OTEL_EXPORTER_OTLP_ENDPOINT: <my-release-signoz-otel-collector-pod-ip>:4317 OTEL_RESOURCE_ATTRIBUTES: service.name=dispatcher-service
m
you should be using service name instead of ip if your service is in same k8s cluster.
r
@Mukesh Chaudhary am using pod ip of pod my-release-signoz-otel-collector
m
since ip of pod is ephemeral we need to use service:port
r
let me try
I tried but it is not showing any traces for notification-service. - name: OTEL_EXPORTER_OTLP_ENDPOINT value: my-release-signoz-otel-collector:4317 - name: OTEL_RESOURCE_ATTRIBUTES value: service.name=notification-service
m
is your service and signoz in same namespace? maybe they are in different namespace
r
both are in different namespace
m
oh then do the following: value: my-release-signoz-otel-collector.<namespace>:4317
r
ok
@Mukesh Chaudhary it is working, Thank you very much for the help.
m
welcome @Rahul Tiwari
p
@Mukesh Chaudhary 👍