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

Avinash Bhawnani

08/18/2023, 8:33 AM
Hi, I configured signoz on k8s using the helm chart, now I want to instrument multiple tomcat application which are running outside of that cluster and they are running on a VM. I did install the java agent to collect open telemetry traces, stuck here what should be the signoz backend "OTEL_EXPORTER_OTLP_ENDPOINT=http://<IP of SigNoz Backend>:4317" ? I tried exposing the service for otel-collector pod, port: 4317, but that is not working for me. Any suggestions here ?
s

Shivanshu Raj Shrivastava

08/18/2023, 10:20 AM
Hey, Can you show the created service for your
signoz collector
? AFAIK, by default it is configured as
ClusterIP
(see charts) In your case, you're trying to access the collector out of the same Kubernetes Cluster. I'd suggest configuring the collector service as either
loadBalancer
or
nodePort
, if you're sending huge data, I'd recommend configuring as
loadBalancer
See https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer on how to configure your service.
a

Avinash Bhawnani

08/18/2023, 10:23 AM
@Shivanshu Raj Shrivastava Its of type nodePort
Copy code
# OtelCollector service
  service:
    # -- Annotations to use by service associated to OtelCollector
    annotations: {}
    # -- Service Type: LoadBalancer (allows external access) or NodePort (more secure, no extra cost)
    type: NodePort
s

Shivanshu Raj Shrivastava

08/18/2023, 10:26 AM
is your kubernetes cluster reachable from the other cluster? may I know in which cloud you are running your cluster?
a

Avinash Bhawnani

08/18/2023, 10:28 AM
cluster is configured on a vm using k3s, and yes usually I expose services very similar even the frontend for signoz and its reachable.
s

Shivanshu Raj Shrivastava

08/18/2023, 10:31 AM
So, you mean to say for collector even when it's exposed as a nodeport service and you are using external ip, still the collector is unreachable, correct? May I see you complete svc object that is being created in your k3s cluster?
a

Avinash Bhawnani

08/18/2023, 10:34 AM
I am using the official helm chart for that, after which a self hosted ingress
s

Siva Kalyan Chintakana

08/20/2023, 8:07 PM
Is dns for the otel collector working? You can check by doing a curl from a pod where your tomcat app is running
2 Views