Skip to main content

Apache Kafka uplink

Uplink Production

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​

ParameterTypeDefaultRange / optionsRequiredDescription
Broker Address
broker
string127.0.0.1:9092max 1024 charsyesKafka bootstrap server address, e.g. 127.0.0.1:9092. Multiple brokers separated by commas.
Default Topic
topic
stringmii-datamax 255 charsyesDefault Kafka topic for publishing data.
Upload Format
format
mapvalues-formatvalues-format, tags-formatyesJSON format of reported data. Values-format splits data into values and errors. Tags-format puts tags in a single array.
Upload Tag Error Code
upload_err
booltrue—noWhen data tag collection reports an error, report the tag error code.
Compression
compression
mapnonenone, gzip, snappy, lz4, zstdnoCompression codec for message batches.
Batch Max Messages
batch-max-messages
int100001 – 1000000noMaximum number of messages batched in one produce request.
Linger (ms)
linger-ms
int50 – 60000noDelay to wait for more messages before sending a batch. Larger values increase throughput at the cost of latency.
Security Protocol
security-protocol
mapPLAINTEXTPLAINTEXT, SASL_PLAINTEXT, SSL, SASL_SSLnoProtocol used to communicate with Kafka brokers.
SASL Mechanism
sasl-mechanism
mapPLAINPLAIN, SCRAM-SHA-256, SCRAM-SHA-512noShown when Security Protocol = undefined.
SASL Username
sasl-username
string—max 255 charsnoShown when Security Protocol = undefined.
SASL Password
sasl-password
string—max 255 charsnoShown when Security Protocol = undefined.
CA Certificate
ssl-ca
file—max 81960 charsnoCA certificate for verifying the broker's certificate. Shown when Security Protocol = undefined.
Client Certificate
ssl-cert
file—max 81960 charsnoClient certificate for mutual TLS authentication. Shown when Security Protocol = undefined.
Client Private Key
ssl-key
file—max 81960 charsnoClient private key for mutual TLS authentication. Shown when Security Protocol = undefined.
Message Timeout (ms)
message-timeout-ms
int50001000 – 300000noLocal message timeout. This is the maximum time librdkafka may use to deliver a message (including retries).
Acknowledgements
acks
mapallall, none, leadernoNumber of broker acknowledgements required. -1 = all in-sync replicas, 0 = no ack, 1 = leader only.
Client ID
client-id
string—max 255 charsnoClient identifier string passed to Kafka broker for logging and monitoring.