Writes events to Google Cloud Storage as batched objects.

Gcp Cloud Storage🔗

Writes events to Google Cloud Storage as batched objects.

Configuration🔗

FieldTypeRequiredDefaultDescription
inputs[string]yes—Upstream component names that feed events into this sink.
error_policyErrorPolicynodrop_on_errorPolicy for handling errors during event processing.
encodingEncoderConfigEnum (optional)no—Optional encoder configuration for output events.
bufferBufferConfigno—Buffer configuration for event batching.
authGcpConfig (optional)no—GCP authentication and project settings.
  project_idstring (optional)yes—GCP Project ID.
  credentials_filestring (optional)no—Path to a Service Account JSON key file. If not provided, Application Default Credentials (ADC) will be used.
  credentials_jsonstring (optional)no—Raw Service Account JSON key content. If not provided, credentials_file or ADC will be used. (sensitive)
bucketstringyes—GCS bucket name.
key_prefixstringyes—Key prefix for GCS objects.
compressionstring (optional)no—Compression algorithm for GCS objects.
encodingstring (optional)no—Encoding format for the GCS object (e.g. 'json' or 'parquet').
batchaws_common::config::BatchConfigno—Batching configuration for GCS writes.

Telemetry🔗

This component emits the following standard telemetry metrics and events.

Metrics🔗

NameTypeDescription
component_sent_events_totalCounterTotal number of Kinetic events successfully sent by this sink.
component_sent_event_bytes_totalCounterTotal estimated byte size of events sent.
component_sent_network_bytes_totalCounterTotal number of raw network bytes sent.
component_errors_totalCounterTotal number of errors encountered during processing.

Events🔗

NameDescription
ComponentErrorEmitted when an error occurs during component execution.
ComponentEventsDroppedEmitted when events are intentionally or unintentionally dropped.

Example🔗

sinks:
  my_gcp_cloud_storage:
    type: gcp_cloud_storage
    inputs: ["my_transform"]
    auth:
      project_id: my-gcp-project
      credentials_file: /secrets/gcp-sa.json
    bucket: my-data-lake
    key_prefix: logs/kinetic/
    compression: gzip
    encoding: parquet