If your application is running in a Kubernetes environment, you can use the OpenTelemetry Operator and Collector to fetch, process, and send metrics and traces to Cloud Observability. There are different methods for doing this, depending on your environment and your goal for telemetry data ingestion.
Each method requires that you install the OpenTelemetry Collector (a vendor-agnostic way to send, process, and emit telemetry data) and the OpenTelemetry Operator (the OpenTelemetry implementation of the Kubernetes Operator used to manage the Collector).
If you want to:
Send Traces and Metrics to Cloud Observability from applications or services running in a Kubernetes cluster, read Install the OpenTelemetry Collector on Kubernetes.
Send Kubernetes infrastructure metrics to Cloud Observability read the OpenTelemetry Kubernetes Metrics Quickstart.
Send Kubernetes infrastructure metrics to Cloud Observability with OpenTelemetry Collector receivers read the Quickstart for Kubernetes with OpenTelemetry Collector receiver metrics.
Scale the Collector to receive trace data, read Scale an OpenTelemetry Collector’s Tracing Pipeline in Kubernetes.
Replace Prometheus with the Collector by scraping existing Prometheus jobs, read Ingest Prometheus metrics using an OpenTelemetry Collector on Kubernetes.
Updated Oct 21, 2022