Skip to main content
The Google Cloud Storage exporter marshals telemetry data into OTLP JSON format and writes it to the specified GCS bucket.

Supported Data Types

📘 Logs

Configuration

FieldTypeDefaultRequiredDescription
NameStringnonetrueUnique identifier within Sawmills.
Bucket NameStringnonetrueThe name of the Google Cloud Storage bucket.
Project IDStringnonefalseThe ID of the Google Cloud project that owns the bucket.
Authentication MethodAuthAutofalseThe authentication method to use for accessing the bucket.

Advanced Options

FieldTypeDefaultRequiredDescription
GranularityHour/MinuteMinutefalseThe time partitioning granularity for objects in the bucket.
CompressionNone/GzipNonefalseCompression method for data before sending to GCS (e.g., gzip).
Folder NameStringNonefalseThe folder name to store objects under in the bucket.
Object PrefixStringNonefalseThe prefix to add to object names in the bucket.

Authentication

The exporter supports three types of authentication:
  • Auto: Use the automatic authentication that GCP provides (via environment variables or metadata server). Read about application default credentials for more information.
  • JSON: Use credentials JSON provided by GCP. Paste the service account key directly into the configuration.
  • File: Specify the path to the credentials JSON file on the filesystem.

Mounting Credentials File

To mount the credentials JSON file, configure the collector using Helm. Configure this via the remote operator values YAML using the following values:
managedCharts:
  sawmills-collector:
    extraEnv:
      - name: GOOGLE_APPLICATION_CREDENTIALS
        value: /creds/credentials.json
    additionalVolumeMounts:
      - name: credentials
        mountPath: /creds
        readOnly: true
    additionalVolumes:
      - name: credentials
        secret:
          secretName: credentials
          items:
            - key: credentials.json
              path: credentials.json