#support

SigNoz Instrumentation Error in GCP/GKE with Python and FastAPI

TLDR Andre faced an error while instrumenting their app service with SigNoz. Srikanth identified the incorrect config and suggested the correct endpoint, resolving the issue.

Powered by Struct AI
3
5mo
Solved
Join the chat
Apr 28, 2023 (5 months ago)
Andre
Photo of md5-b47cd2d6f296171f60f471aa08ffef38
Andre
03:08 AM
hi all,

I need for support…

We install SigNoz on GCP/GKE via helm, with the following values:

global:
  storageClass: gce-resizable
  cloud: gcp

clickhouse:
  installCustomStorageClass: true

The instrumented pyhon application we are calling this way:

WORKDIR / app
CMD ["bash", "-c", "OTEL_RESOURCE_ATTRIBUTES=service.name=zagpt-python OTEL_EXPORTER_OTLP_ENDPOINT='' opentelemetry-instrument --traces_exporter otlp_proto_http --metrics_exporter otlp_proto_http python webhook.py"]

In the log of the signoz-otel-collector pod, it gives me the error:

api-stg-00042-deployment-65f9c6d996-48wtk app Transient error Bad Gateway encountered while exporting span batch, retrying in 32s.

Does anyone have any idea where the error is for not letting me instrument my app service with python and FastAPI?
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
04:28 AM
> In the log of the signoz-otel-collector pod, it gives me the error:
>
api-stg-00042-deployment-65f9c6d996-48wtk app Transient error Bad Gateway encountered while exporting span batch, retrying in 32s.

>
This shouldn’t be the signoz-otel-collector pod but rather your application.

>
OTEL_EXPORTER_OTLP_ENDPOINT=''

>
--traces_exporter otlp_proto_http --metrics_exporter otlp_proto_http

This is an incorrect config. You are using the HTTP exporter, but the endpoint configured is the gRPC port. You either have to change the exporter or the endpoint to HTTP, i.e. 4318.
Andre
Photo of md5-b47cd2d6f296171f60f471aa08ffef38
Andre
04:42 AM
Srikanth - tks, its working right now