This message was deleted.
# support
s
This message was deleted.
p
can you try using OTLP-HTTP port instead? That is
4318
. Also, you would need to add the env
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
s
otelCollector: ingress: enabled: true hosts: - host: collector.infra.MyCompanyDomain.com paths: - path: / pathType: ImplementationSpecific port: 4318 Above is my otelCollector ingress and i have registered in GCP cloud DNS below is my code snippet running the jar file #!/bin/bash [ -z "$JAVA_XMS" ] && JAVA_XMS=512m [ -z "$JAVA_XMX" ] && JAVA_XMX=512m set -e JAVA_OPTS="${JAVA_OPTS} \ -Xms${JAVA_XMS} \ -Xmx${JAVA_XMX} \ -Dapplication.name=Auth-Service \ -Dotel.metrics.exporter=none \ -Dotel.traces.exporter=otlp \ -Dotel.resource.attributes=service.name=Auth-Service \ -Dotel.exporter.otlp.traces.endpoint=http://collector.infra.MyCompanyDomain.com \ -Dotel.service.name=Auth-Service \ -Dotel.javaagent.debug=false \ -javaagent:../agents/opentelemetry-javaagent.jar" exec java ${JAVA_OPTS} \ -jar "../target/microservice-0.0.1-SNAPSHOT.jar" \ Did the below for protocol export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf getting this the below issue io.opentelemetry.exporter.internal.http.HttpExporter - Failed to export spans. Server responded with HTTP status code 502. Error message: Unable to parse response body, HTTP status message: Bad Gateway Where am doing wrong?
p
That looks okay to me.
@Srikanth Chekuri any idea with the issue here?
s
Copy code
global:
  storageClass: gce-resizable
  cloud: gcp

clickhouse:
  installCustomStorageClass: true
  persistence:
    size: 100Gi

ingress-nginx:
  enabled: true

otelCollector:
  ingress:
    enabled: true
    className: nginx
    hosts:
      - host: otelcollector.infra.customDomain.com
        paths:
          - path: /
            pathType: ImplementationSpecific
            port: 4318
    annotations:
      nginx.ingress.kubernetes.io/backend-protocol: "GRPC"


exporters:
  clickhouselogsexporter:
    sending_queue:
      queue_size: 2000
For the reference Above is the over-ride-values.yaml file
below is the error
Copy code
[OkHttp <http://otelcollector.infra.myCompanyDomain.com/...>] WARN io.opentelemetry.exporter.internal.http.HttpExporter - Failed to export logs. Server responded with HTTP status code 502. Error message: Unable to parse response body, HTTP status message: Bad Gateway
p
Copy code
<http://nginx.ingress.kubernetes.io/backend-protocol|nginx.ingress.kubernetes.io/backend-protocol>: "GRPC"
I don't think this is required for
4318
- HTTP port. But only
4317
- GRPC port.
s
-Dotel.exporter.otlp.traces.endpoint=http://collector.infra.MyCompanyDomain.com \
If you provide this option you should provide a full endpoint that include port (4318) and path (/v1/traces)