Describes, the procedure to write new kafka custom collector.
-
Create package for a custom collector, for example: kafka_collector
-
Inside the collector package, develop python code by implementing streamColletor.
-
Create or update the required configuration files. Refer the section Configurations
Example: To create a Kafka Collector:
from collectors.stream_collector import StreamCollector class KafkaCollector(StreamCollector)
See sample code for kafka custom collector in example directory.