Skip to content

Kafka Transport Provider

Ahmed Abdul Hamid edited this page Sep 3, 2019 · 3 revisions

Contents

Overview

KafkaTransportProvider is intended for producing data to Kafka.

Configuration

  • All transport provider config properties must be prefixed with brooklin.server.transportProvider.<transportProviderName>.

  • transportProviderName is an arbitrary user-supplied name specified in Brooklin configuration (brooklin.server.transportProviderNames)

Property Description Default

bootstrap.servers

(None)

zookeeper.connect

  • ZooKeeper connection string

  • Optional because connectors may choose to manage their own destinations

(None)

numProducersPerConnector

The number of Kafka producers to create

10

producersPerTask

  • The number of Kafka producers to use per datastream task

  • Value must lie within the range [0, numProducersPerConnector]

  • Can be overridden at a datastream level by specifying a different value for the same property in datastream metadata

1

metricsNamesPrefix

Prefix to prepend to emitted metrics

KafkaTransportProvider

topic.*

Kafka topic configuration

  • retention.ms: 1.21e+9 (=14 days)

  • min.insync.replicas: 2

Metrics

Aggregate Metrics

  • Aggregate metrics cover all datastreams in a single Brooklin instance

  • Aggregate metrics prefix: KafkaTransportProvider.aggregate.

Metric Name Description

eventByteWriteRate

The rate of bytes written to Kafka

eventWriteRate

The rate of events written to Kafka

Datastream-Specific Metrics

  • Datastream-Specific metrics prefix: KafkaTransportProvider.<datastreamName>.

  • datastreamName is the datastream name

Metric Name Description

eventByteWriteRate

The rate of bytes written to Kafka

eventWriteRate

The rate of events written to Kafka

eventTransportErrorRate

The rate of errors encountered when data is sent to destination