Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

OpenTelemetry and GKE

Hi @ms4446 

Yesterday you told me we could do this. So I wanted to know how to do this because I'm using GKE. It may be simpler than going through an ops agent.

2. Cloud Operations for GKE:

  • If you are using GKE, you can leverage Cloud Operations for GKE, which integrates OpenTelemetry natively.
  • It automatically collects traces from your applications deployed on GKE and sends them to Google Cloud Trace without needing to configure the OpenTelemetry Collector manually.

Thank you 

Solved Solved
0 25 9,621
1 ACCEPTED SOLUTION

To activate tracing with OpenTelemetry and export traces to Google Cloud Trace in a GKE environment, you can use the following configuration:

Enable OpenTelemetry in Strimzi:

  1. Add the following configuration to your Strimzi deployment:

     
    tracing:
      type: opentelemetry
    
  2. Configure the OpenTelemetry Collector: a. Deploy an OpenTelemetry Collector in your GKE cluster. b. Apply the following configuration:

     
    receivers:
      otlp:
        protocols:
          grpc:
            endpoint: "0.0.0.0:55680"
    exporters:
      googlecloud:
        project: "YOUR_PROJECT_ID"
        service: pipelines
        traces:
          receivers: [otlp]
          exporters: [googlecloud]
    

    This configuration sets up the Collector to receive OTLP trace data and export it to Google Cloud Trace.

  3. Apply and Restart: a. Apply the OpenTelemetry Collector configuration. b. Restart the OpenTelemetry Collector to apply the changes.

  4. Permissions and Network Configuration: a. Ensure that the OpenTelemetry Collector has the necessary permissions to send data to Google Cloud Trace. b. Verify that your network configuration allows communication between Strimzi, the Collector, and Google Cloud Trace.

After completing these steps, your Strimzi deployment will emit OpenTelemetry traces, which the OpenTelemetry Collector will collect and export to Google Cloud Trace. You can then view and analyze these traces in the Google Cloud Console.

View solution in original post

25 REPLIES 25