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]yesUpstream component names that feed events into this sink.
error_policyErrorPolicynodrop_on_errorPolicy for handling errors during event processing.
encodingEncoderConfigEnum (optional)noOptional encoder configuration for output events.
bufferBufferConfignoBuffer configuration for event batching.
authGcpConfig (optional)noGCP authentication and project settings.
  project_idstring (optional)yesGCP Project ID.
  credentials_filestring (optional)noPath to a Service Account JSON key file. If not provided, Application Default Credentials (ADC) will be used.
  credentials_jsonstring (optional)noRaw Service Account JSON key content. If not provided, credentials_file or ADC will be used. (sensitive)
bucketstringyesGCS bucket name.
key_prefixstringyesKey prefix for GCS objects.
compressionstring (optional)noCompression algorithm for GCS objects.
encodingstring (optional)noEncoding format for the GCS object (e.g. 'json' or 'parquet').
batchaws_common::config::BatchConfignoBatching 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