#support

Issue Sending Telemetry Data to Signoz Otel Collector

TLDR Sudhansu has problems sending telemetry data from a spring-petclinic sidecar app using the provided configuration. Prashant suggested checking the logs and generating traces but the issue is unresolved.

Powered by Struct AI
Sep 09, 2023 (3 months ago)
Sudhansu
Photo of md5-9fa4f20e2c51e919cc3361c94d2cb690
Sudhansu
10:49 AM
hello all,
apiVersion: 
kind: OpenTelemetryCollector
metadata:
  name: sidecar-collector
spec:
  mode: sidecar
  config: |
    receivers:
      otlp:
        protocols:
          http:
          grpc:
    processors:
      batch:
    exporters:
      logging:
      otlp:
        endpoint: 
        tls:
          insecure: true
    service:
      pipelines:
        traces:
          receivers: [otlp]
          processors: [batch]
          exporters: [logging, otlp]
        metrics:
          receivers: [otlp]
          processors: [batch]
          exporters: [logging, otlp]

the mentioned configuration is used to send telemetry data to signoz otel collector where signoz setup is performed at a different K8s cluster . I need to find the reason for which this setup is failing. Currently unable to figure out why this is failing. Implemented the spring petclininc app for sidecar following the documentation.
If I try to send telementry data using the go command for telemetrygen along with the mentioned exporter DNS for signoz otel collector it is working
telemetrygen traces --traces 1 --otlp-endpoint  --otlp-insecure

Image 1 for hello all,
```apiVersion: <http://opentelemetry.io/v1alpha1|opentelemetry.io/v1alpha1>
kind: OpenTelemetryCollector
metadata:
  name: sidecar-collector
spec:
  mode: sidecar
  config: |
    receivers:
      otlp:
        protocols:
          http:
          grpc:
    processors:
      batch:
    exporters:
      logging:
      otlp:
        endpoint: <http://signals-collector.qualix.ai:4317>
        tls:
          insecure: true
    service:
      pipelines:
        traces:
          receivers: [otlp]
          processors: [batch]
          exporters: [logging, otlp]
        metrics:
          receivers: [otlp]
          processors: [batch]
          exporters: [logging, otlp]```
the mentioned configuration is used  to send telemetry data to signoz otel collector where signoz setup is performed at a different K8s cluster . I need to find the reason for which this setup is failing. Currently unable to figure out why this is failing. Implemented the spring petclininc app for sidecar following the documentation.
If I try to send telementry data using the go command for telemetrygen along with the mentioned exporter DNS for signoz otel collector it is working
```telemetrygen traces --traces 1 --otlp-endpoint <http://signals-collector.qualix.ai:4317|signals-collector.qualix.ai:4317> --otlp-insecure```
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
06:33 PM
Hi Sudhansu 👋

Can you try the following instead for otlp exporter configuration?

    endpoint: 
    tls:
      insecure: true
Sep 11, 2023 (3 months ago)
Sudhansu
Photo of md5-9fa4f20e2c51e919cc3361c94d2cb690
Sudhansu
01:17 AM
Hi Prashant I implemented the suggested change but I am still unable to send data from the spring-petclinic sidecar app

apiVersion: 
kind: OpenTelemetryCollector
metadata:
  name: sidecar-collector
spec:
  mode: sidecar
  config: |
    receivers:
      otlp:
        protocols:
          http:
          grpc:
    processors:
      batch:
    exporters:
      logging:
      otlp:
        endpoint: 
        tls:
          insecure: true
    service:
      pipelines:
        traces:
          receivers: [otlp]
          processors: [batch]
          exporters: [logging, otlp]
        metrics:
          receivers: [otlp]
          processors: [batch]
          exporters: [logging, otlp]
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
08:56 AM
Sudhansu Can you check logs of the spring-petclinic and sidecar-collector containers?
08:57
Prashant
08:57 AM
Also, did you play around the petclinic app to generate traces?