Apache Kafka uplink
Produce tag values to Kafka topics.
An uplink runs on a Site Runtime and subscribes to device groups; every value it receives is sent on. See Uplinks for the flow and the payload format.
Settings
| Parameter | Type | Default | Range / options | Required | Description |
|---|---|---|---|---|---|
Broker Addressbroker | string | 127.0.0.1:9092 | max 1024 chars | yes | Kafka bootstrap server address, e.g. 127.0.0.1:9092. Multiple brokers separated by commas. |
Default Topictopic | string | mii-data | max 255 chars | yes | Default Kafka topic for publishing data. |
Upload Formatformat | map | values-format | values-format, tags-format | yes | JSON format of reported data. Values-format splits data into values and errors. Tags-format puts tags in a single array. |
Upload Tag Error Codeupload_err | bool | true | — | no | When data tag collection reports an error, report the tag error code. |
Compressioncompression | map | none | none, gzip, snappy, lz4, zstd | no | Compression codec for message batches. |
Batch Max Messagesbatch-max-messages | int | 10000 | 1 – 1000000 | no | Maximum number of messages batched in one produce request. |
Linger (ms)linger-ms | int | 5 | 0 – 60000 | no | Delay to wait for more messages before sending a batch. Larger values increase throughput at the cost of latency. |
Security Protocolsecurity-protocol | map | PLAINTEXT | PLAINTEXT, SASL_PLAINTEXT, SSL, SASL_SSL | no | Protocol used to communicate with Kafka brokers. |
SASL Mechanismsasl-mechanism | map | PLAIN | PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 | no | Shown when Security Protocol = undefined. |
SASL Usernamesasl-username | string | — | max 255 chars | no | Shown when Security Protocol = undefined. |
SASL Passwordsasl-password | string | — | max 255 chars | no | Shown when Security Protocol = undefined. |
CA Certificatessl-ca | file | — | max 81960 chars | no | CA certificate for verifying the broker's certificate. Shown when Security Protocol = undefined. |
Client Certificatessl-cert | file | — | max 81960 chars | no | Client certificate for mutual TLS authentication. Shown when Security Protocol = undefined. |
Client Private Keyssl-key | file | — | max 81960 chars | no | Client private key for mutual TLS authentication. Shown when Security Protocol = undefined. |
Message Timeout (ms)message-timeout-ms | int | 5000 | 1000 – 300000 | no | Local message timeout. This is the maximum time librdkafka may use to deliver a message (including retries). |
Acknowledgementsacks | map | all | all, none, leader | no | Number of broker acknowledgements required. -1 = all in-sync replicas, 0 = no ack, 1 = leader only. |
Client IDclient-id | string | — | max 255 chars | no | Client identifier string passed to Kafka broker for logging and monitoring. |