Produces events to an Apache Kafka topic.

Kafka🔗

Produces events to an Apache Kafka topic.

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.
clientKafkaClientConfignoShared Kafka client connection settings.
  bootstrap_serversstringyesComma-separated list of Kafka broker addresses.
  client_idstring (optional)noOptional Kafka client identifier.
  propertiesstd::collections::HashMap<String,String>noAdditional librdkafka configuration properties.
topicstringyesThe Kafka topic to produce events to.

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_kafka:
    type: kafka
    inputs: ["my_transform"]
    client:
      bootstrap_servers: localhost:9092
      client_id: kinetic-worker-1
      properties: {"compression.type": "lz4"}
    topic: events-ingest