Kafka ProducerΒΆ
The foglamp-north-kafka plugin sends data from FogLAMP to the an Apache Kafka. FogLAMP acts as a Kafka producer, sending reading data to Kafka. This implementation is a simplified producer that sends all data on a single Kafka topic. Each message contains an asset name, timestamp and set of readings values as a JSON document.
The configuration of the Kafka plugin is very simple, consisting of four parameters that must be set.
Bootstrap Brokers: A comma separate list of Kafka brokers to use to establish a connection to the Kafka system.
Kafka Topic: The Kafka topic to which all data is sent.
Send JSON: This controls how JSON data points should be sent to Kafka. These may be sent as strings or as JSON objects.
Data Source: Which FogLAMP data to send to Kafka; Readings or FogLAMP Statistics.