Produces events to an Apache Kafka topic.

Kafka🔗

Produces events to an Apache Kafka topic.

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.
clientKafkaClientConfigno—Shared Kafka client connection settings.
  bootstrap_serversstringyes—Comma-separated list of Kafka broker addresses.
  client_idstring (optional)no—Optional Kafka client identifier.
  propertiesstd::collections::HashMap<String,String>no—Additional librdkafka configuration properties.
topicstringyes—The 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