Google Cloud Storage
Supported Types
Metrics | Logs | Traces |
---|---|---|
✓ | ✓ | ✓ |
Notes
The Google Cloud Storage destination saves telemetry as OTLP JSON objects in Google Cloud Storage.
- The destination will create a bucket if it doesn't exist. Bucket names in GCS are globally unique, so if any organization contains a bucket with the given name, it will fail to create and will likely return
403 Forbidden
codes when it tries to write. You can manually create the bucket in GCS to ensure the name is not taken. More info, here. - Your credentials must have the Storage Admin permission to create buckets, folders, and objects.
Configuration
Parameter | Type | Default | Description |
---|---|---|---|
telemetry_types* | telemetrySelector | Logs, Metrics, Traces | Specifies which types of telemetry to export. |
bucket_name* | string | "" | The name of the bucket to store objects in. Must be globally unique. |
project_id | string | "" | The ID of the Google Cloud project the bucket belongs to. Will be read from credentials if not configured. |
auth_type | enum | auto | The method used for authenticating to Google Cloud. Valid values are "auto", "json", or "file". |
credentials | string | "" | JSON value from a Google Service Account credential file. Required if auth_type is "json". |
credentials_file | string | "" | Path to a Google Service Account credential file. Required if auth_type is "file". |
bucket_location | enum | US | The location of the bucket. Only used during bucket creation. More info |
bucket_storage_class | enum | STANDARD | The storage class of the bucket. Only used during bucket creation. More info |
partition | enum | minute | The granularity of the timestamps in the object path, either "minute" or "hour". |
compression | enum | none | The compression algorithm to use when exporting telemetry, either "none" or "gzip". |
folder_name | string | "" | An optional folder to put the objects in. Can be a nested folder path. |
object_prefix | string | "" | An optional prefix to prepend to the object file name. |
Supported Retry and Queuing Settings
This destination supports the following retry and queuing settings:
Sending Queue | Persistent Queue | Retry on Failure |
---|---|---|
✓ | ✓ | ✓ |
Example Configuration
Basic Configuration
For a basic configuration, we specify the bucket_name
and use the default location and storage class. The project ID will be read from credentials. We update the compression to use gzip
and we specify a folder name and object prefix.
The object paths in GCS will look like this:
Web Interface

Standalone Destination