https://signoz.io logo
#support
Title
# support
r

Rahul Tiwari

09/02/2022, 6:05 AM
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

Mukesh Chaudhary

09/02/2022, 6:10 AM
you should be using service name instead of ip if your service is in same k8s cluster.
r

Rahul Tiwari

09/02/2022, 6:12 AM
@Mukesh Chaudhary am using pod ip of pod my-release-signoz-otel-collector
m

Mukesh Chaudhary

09/02/2022, 6:13 AM
since ip of pod is ephemeral we need to use service:port
r

Rahul Tiwari

09/02/2022, 6:22 AM
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

Mukesh Chaudhary

09/02/2022, 6:52 AM
is your service and signoz in same namespace? maybe they are in different namespace
r

Rahul Tiwari

09/02/2022, 6:52 AM
both are in different namespace
m

Mukesh Chaudhary

09/02/2022, 6:52 AM
oh then do the following: value: my-release-signoz-otel-collector.<namespace>:4317
r

Rahul Tiwari

09/02/2022, 6:53 AM
ok
@Mukesh Chaudhary it is working, Thank you very much for the help.
m

Mukesh Chaudhary

09/02/2022, 8:37 AM
welcome @Rahul Tiwari
p

Pranay

09/02/2022, 10:18 AM
@Mukesh Chaudhary 👍