Hello,
I wanted to know if Google cloud trace exposes an OLTP endpoint?
Indeed, I have a strimzi configuration and I would like to perform opentelemetry type tracing and then export these traces to Google Trace Explorer. But export I need an OLTP endpoint from google cloud trace.
Sincerely
Unfortunately, Google Cloud Trace does not directly expose an OLTP endpoint for sending traces. However, you can still achieve your goal of exporting OpenTelemetry traces to Google Cloud Trace Explorer using the following methods:
1. OpenTelemetry Collector with Google Cloud exporter:
2. Cloud Operations for GKE:
Additional Notes:
Thank you for your reply.
I have a Strimzi config for KafkaConnect. In this config I activated OpenTelemetry by adding the option:
tracing:
type: opentelemetry
As in this official doc : https://strimzi.io/blog/2023/03/01/opentelemetry/
I don't know if I can add the export option to export to Google cloud trace. Do you have any suggestion please ?
HI @Navirash ,
Thanks for clarification. While you cannot directly add an export option to the Strimzi config for exporting to Google Cloud Trace, you can achieve this by configuring the Ops Agent to collect and export traces from Strimzi to Cloud Trace. Here's how you can do it:
Prerequisites:
Steps:
Enable OpenTelemetry in Strimzi: Make sure your Strimzi deployment is configured to emit trace data using the OpenTelemetry Protocol (OTLP). This is typically done by setting the tracing type to opentelemetry in the Strimzi configuration.
Deploy the Ops Agent: Install and deploy the Ops Agent on your Kubernetes cluster where Strimzi is running. The Ops Agent will act as a collector for OTLP trace data from Strimzi.
Configure the Ops Agent to Receive OTLP Trace Data: Add the following configuration to the Ops Agent's receiver section:
receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:55680"
exporters:
trace:
type: cloudtrace
project_id: "YOUR_PROJECT_ID"
region: "YOUR_REGION"
Additional Considerations:
Security and Network Configuration: Verify that the network setup allows for communication between Strimzi and the Ops Agent, and that the Ops Agent can successfully send data to Google Cloud Trace.
Authentication and Permissions: Ensure that the Ops Agent has the necessary permissions to send data to Google Cloud Trace, typically involving configuring service accounts and IAM roles in Google Cloud.
Monitoring and Troubleshooting: Monitor the integration to confirm that traces are being correctly collected and exported. Be prepared to address any issues related to network connectivity, permissions, or configuration errors.
Documentation: Always refer to the latest documentation for Strimzi, OpenTelemetry, the Ops Agent, and Google Cloud Trace for up-to-date setup instructions and best practices.
Hi @ms4446
Thank you for your help. It's much clearer to me.
I will try to implement what you described to me.