Menu
Grafana Cloud

Send data to the Grafana Cloud OTLP endpoint

The Grafana Cloud OTLP endpoint is OpenTelemetry Protocol (OTLP) compliant, and the recommended endpoint to send OpenTelemetry metrics, logs, and traces to Grafana Cloud.

The recommended architecture for supported production observability is to send OTLP data via Grafana Alloy, Grafana Labs’ distribution of the OpenTelemetry Collector.

Grafana Cloud OpenTelemetry Architecture - Via OTel Collector The recommended OpenTelemetry architecture uses Grafana Alloy.

Grafana Alloy offers the following advantages over non-Collector setups:

  1. Robust, reliable, and scalable to handle transport issues.
  2. Support to enrich telemetry metadata data, for example to add k8s.* attributes.
  3. Support to sample and redact data, and route data to multiple observability backends.

Note

You can use other OpenTelemetry Collector distributions but may need to perform additional set up and maintenance.

Quickstart architecture

For non-production observability, such as local development or test purposes, or when it isn’t possible to deploy an OpenTelemetry Collector distribution, use OpenTelemetry instrumentation SDKs to send OTLP data directly to the OTLP endpoint.

You can use a language specific instrumentation agent or SDK for automatic or manual instrumentation with full support to send OTLP metrics, logs, and traces.

Grafana Cloud OpenTelemetry Architecture - Direct A quickstart architecture that uses language specific agents or SDKs.

Alternatively you can use Grafana Beyla auto-instrumentation at the kernel level without the need for a language specific agent or SDK. Beyla supports Response, Error, and Duration metrics (RED metrics) and distributed traces with some limitations.

Grafana Cloud OpenTelemetry Architecture - Beyla A quickstart architecture that uses Grafana Beyla eBPF auto-instrumentation SDK.

The quickstart architecture is easy to set up, however be aware of the following disadvantages compared to Collector-based setups:

  1. Limited reliability to handle transport issues.
  2. No support to enrich telemetry metadata data.
  3. No support to sample and redact data, and route data to multiple observability backends.

For most use cases, Grafana Labs recommends to use the Grafana Cloud integration tiles to setup and send OpenTelemetry data to Grafana Cloud. This opinionated approach includes all the binaries, connection parameters, and configuration snippets you need to set up OpenTelemetry.

Integration tiles are available to guide you to set up a production architecture with:

  • Grafana Labs auto-instrumentation agent for Java (JVM) and Grafana Alloy
  • Grafana Labs instrumentation SDK for .Net and Grafana Alloy
  • Grafana Beyla eBPF auto-instrumentation and Grafana Alloy
  • OpenTelemetry (OTLP) with Grafana Alloy, for an application already instrumented with OpenTelemetry
  • The upstream OpenTelemetry Collector published by the OpenTelemetry Community, for an application already instrumented with OpenTelemetry

Note

For applications that use programming languages other than Java (JVM) and .NET, follow the Application Observability instrumentation documentation or upstream OpenTelemetry instrumentation documentation to set up manual instrumentation, then use the Grafana Alloy or upstream OpenTelemetry Collector integration tile to set up a Collector.

To use a Grafana Cloud integration tile to set up OpenTelemetry:

  1. Sign In to the Grafana Cloud Portal.
  2. From your organization Overview, select or click Launch to open a Grafana Cloud stack.
  3. With a stack selected, click Launch from the Grafana tile to go to Grafana Cloud.
  4. With Grafana Cloud launched, click Connections, or expand, then click Add new connection.
  5. Search for “OpenTelemetry” and press enter to filter the connection options.
  6. Select the desired OpenTelemetry integration tile and follow the setup instructions.

Grafana Cloud Administration Console / Grafana Cloud OTLP endpoint connection details Grafana Cloud integration tiles for OpenTelemetry

Manual OpenTelemetry setup for advanced users

Advanced users can manually set up OpenTelemetry components to send OpenTelemetry data to Grafana Cloud.

To send OTLP data to the Cloud OTLP endpoint you need to get your connection details from the Grafana Cloud administration console:

  1. Sign In to the Grafana Cloud Portal.
  2. From your organization Overview, select or click Launch to open a Grafana Cloud stack.
  3. With a stack selected, click Configure from the OpenTelemetry tile.
  4. Follow the instructions to generate an authentication token and OpenTelemetry environment variables OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_ENDPOINT, and OTEL_EXPORTER_OTLP_HEADERS.

Grafana Cloud Administration Console / Grafana Cloud OTLP endpoint connection details Configure the OTLP endpoint for a Grafana Cloud stack.

Set up instructions are available for:

Visualize and use OpenTelemetry data

Grafana Cloud provides a turnkey experience for application performance monitoring (APM) through Grafana Application Observability. It can detect anomalies, identify root causes, and fix problems in services and applications.

Alternatively, you can consume your OpenTelemetry traces, metrics, and logs through Tempo traces, Prometheus/Mimir metrics, and Loki logs visualization. Then use your ingested OpenTelemetry data in Alerting and with all of the analysis features Grafana provides.

OpenTelemetry data format mapping to Grafana Cloud

Refer to OTLP format considerations for information about conversion of OpenTelemetry metrics, logs, and traces to Prometheus/Mimir, Loki, and Tempo.