Running an OpenTelemetry Collector on Kubernetes is one of those jobs that looks like a single Helm chart and turns into a part-time role. You own its upgrades, its authentication to the backend, its memory limits and its own monitoring. On October 29, Google made Managed OpenTelemetry for GKE generally available, which means Google now runs that collector inside your cluster for you.
The feature has been in Preview since March. GA brings a gRPC endpoint alongside HTTP, logs routed through the same pipeline as traces and metrics, and GA status for the gcloud flag and the Terraform block. If you've been waiting for GA before touching it in production, this is a practical walkthrough of turning it on, wiring a workload to it, and the cases where I'd keep running my own collector.
Top image: Raysonho @ Open Grid Scheduler / Grid Engine via Wikimedia Commons, CC0
What Google actually manages
The service has two parts, according to Google's concept page. Managed collection deploys a Google-managed OpenTelemetry collector into a gke-managed-otel namespace and exposes an in-cluster OTLP endpoint. Automatic configuration adds a custom resource called Instrumentation that injects standard OpenTelemetry environment variables into your Pods so they send data to that endpoint without code changes.
The endpoints are fixed:
- HTTP:
http://opentelemetry-collector.gke-managed-otel.svc.cluster.local:4318 - gRPC:
http://opentelemetry-collector.gke-managed-otel.svc.cluster.local:4317
Data lands in Cloud Logging, Cloud Monitoring and Cloud Trace. One naming trap: the Instrumentation resource here is instrumentations.telemetry.googleapis.com, which is a different resource from the Instrumentation used by the community OpenTelemetry Operator. If you already run the Operator, read manifests carefully before applying anything.
What Google doesn't do is instrument your code. Automatic configuration works for workloads that already use the OpenTelemetry SDK and read the standard OTEL_* environment variables. If your service has no OpenTelemetry SDK, you still have instrumentation work to do first.
Prerequisites
Prerequisites: a GKE cluster on 1.37.1-gke.1697000 or later for the GA collector and gRPC export (Preview needed only 1.34.1-gke.2178000), gcloud CLI 576.0.0 or later, terraform-provider-google v8.8.0 or later if you use Terraform, and the GKE, Telemetry (OTLP), Cloud Logging, Cloud Monitoring and Cloud Trace APIs enabled.
Google's release notes are explicit that clusters which used the Preview should upgrade to 1.37.1-gke.1697000 or later to get the GA collector and features. Enable the APIs in one go:
BashCopy gcloud services enable container.googleapis.com telemetry.googleapis.com logging.googleapis.com monitoring.googleapis.com cloudtrace.googleapis.com
For permissions, the docs list Kubernetes Engine Cluster Admin (roles/container.clusterAdmin), Monitoring Viewer, Logs Viewer and Cloud Trace User.
Step 1: turn on the managed collector
On an existing cluster, the gcloud command is a single flag:
BashCopy gcloud container clusters update CLUSTER_NAME \
--project=PROJECT_ID \
--managed-otel-scope=COLLECTION_AND_INSTRUMENTATION_COMPONENTS \
--location=LOCATION
For a new Autopilot cluster, use gcloud container clusters create-auto with the same --managed-otel-scope flag; for Standard, gcloud container clusters create. In the console, open the cluster, find Managed OpenTelemetry in the Features list, click Edit and select "Enable managed OpenTelemetry". On new Autopilot clusters it lives under Advanced settings, in the Operations section.
In Terraform, add a block to your google_container_cluster resource:
hclCopy managed_opentelemetry_config {
scope = "COLLECTION_AND_INSTRUMENTATION_COMPONENTS"
}
To turn it off later, set the scope to NONE. Google notes that disabling removes the collector but leaves the Instrumentation CRD and any resources you created, so re-enabling picks up your old configuration. Data already collected stays in Google Cloud Observability.
Expand
Google Cloud Trace explorer showing a list of traces with latency and spans for a sample application
Image: Google Cloud documentation
Step 2: tell workloads where to send data
You have two options: set the OTLP endpoint in your Deployments yourself, or let GKE inject it with an Instrumentation resource. Google advises against mixing both for the same workload, because automatic configuration can override manual changes.
For automatic configuration, save a manifest like this, adapted from Google's example, as otlp-auto-config-namespace.yaml:
YAMLCopy apiVersion: telemetry.googleapis.com/v1alpha1
kind: Instrumentation
metadata:
namespace: shop
name: shop-otel
spec:
selector:
matchLabels:
otel: enabled
autoInstrumentationConfig:
configInjection:
enabled: true
otelSDKConfig:
tracer_provider:
sampler:
parent_based:
root:
trace_id_ratio_based:
ratio: "0.1"
meter_provider:
readers:
- periodic:
interval: 60000
Then apply it and restart the workloads that should pick it up:
BashCopy kubectl apply -f otlp-auto-config-namespace.yaml
kubectl rollout restart deployment checkout -n shop
The restart matters. Injection happens when Pods are created, so anything already running before the Instrumentation object existed won't get the variables until it's redeployed. An empty selector ({}) targets every Pod in the namespace.
The namespace, labels and the 0.1 ratio above are my placeholders. The defaults, if you leave them out, are a trace sampling ratio of 1.0 (every trace) and a metric export interval of 30,000 ms. The interval must be between 5,000 and 300,000 ms and a multiple of 5,000.
Step 3: choose HTTP or gRPC
By default, automatic configuration exports over HTTP. On 1.37.1-gke.1697000 and later you can switch to gRPC by setting exporter: otlp_grpc: {} on each provider you use. One Instrumentation resource supports one protocol for all providers, and any provider you don't use should be set to null; meter_provider: null, for example, disables metrics.
Behind the scenes, GKE sets OTEL_EXPORTER_OTLP_PROTOCOL to grpc or http/protobuf and points OTEL_EXPORTER_OTLP_ENDPOINT at the matching port. If your SDK has a better-tested exporter for one protocol, pick that one. I'd stay on HTTP unless you have a reason to change, simply because it's the default and the path most users exercise.
Expand
Detail panel in Google Cloud Trace showing span attributes and timing for a single request
Image: Google Cloud documentation
What it costs
There's no line item for the managed collector in Google's docs. You pay for what you send: metrics at Google Cloud Managed Service for Prometheus prices, logs at Cloud Logging prices and traces at Cloud Trace prices, all billed by ingestion volume. Normal Cloud Logging, Monitoring and Trace quotas apply.
That makes the sampling ratio your main cost lever. The default of 1.0 sends every trace. On a busy service, that can be a lot of spans you'll never look at. Start low, at 0.1 or below, and raise it for the services you're actively debugging. The metric interval is the other knob: the 30-second default is fine for most dashboards, and a 60-second interval halves metric samples for services where that resolution is enough.
When I'd keep my own collector
Google is upfront that the managed collector doesn't offer collector-level filtering and controls. If you need those, the docs point you at the Google-Built OpenTelemetry Collector, which you deploy and run yourself.
In practice that means keeping a self-managed collector if you redact PII from spans before they leave the cluster, drop noisy metrics at the collector, tail-sample traces, or export to a second backend such as Grafana or Datadog alongside Google Cloud. The managed collector sends to Google Cloud Observability and that's it.
For a team that already sends everything to Cloud Trace and Cloud Monitoring and mostly fights with collector upgrades, the managed option is an easy win. For a team with a carefully tuned processor pipeline, it's a step backwards.
Troubleshooting
Nothing shows up in the console. Google's checklist: confirm all the required APIs are enabled, confirm the Instrumentation resource's namespace matches the workload's namespace and its selector matches the Pod labels, check the Pod for injected variables, and read the collector's own logs with kubectl logs -n gke-managed-otel -l app=opentelemetry-collector -c opentelemetry-collector.
The variables aren't there. They're injected into Pods, not into Deployments or ReplicaSets, so inspect the Pod spec: kubectl get pods -n shop -l otel=enabled -o yaml and look under spec.containers[*].env. If they're missing, the Pod was probably created before the Instrumentation object; restart the Deployment.
Disabling a signal didn't work. Google says to apply the updated Instrumentation resource with Server-Side Apply and then redeploy the workloads.
Autopilot rejects a Pod. Config injection isn't supported for privileged workloads from GKE Autopilot partners. Targeting one with an Instrumentation selector can make it fail the Autopilot privileged workload allowlist, so exclude those Pods with labels.
The managed collector won't suit every team, but it removes a component most teams never wanted to own. If your clusters are already on 1.37, enabling it on a staging cluster, pointing one service at it with a low sampling ratio and comparing the bill after a week is a cheap experiment.
Originally published on Mango Developer.


