Kafka as a source and target
You can create meters for Kafka in the following methods:
Meter with Kafka as a source
To create a meter with Kafka as the source, follow the instructions below:
- Create a Custom Meter. For more information, see Create a new meter using custom method.
- Select the Kafka as the source.
The Kafka settings page is displayed.
- Click Select to select an Event Definition on the Kafka setting page. Only event schema import from an AVSC schema is supported.
You can create or select an existing Event Definition or import an Event Definition. For more information, see Event Definitions. - Under the Kafka Settings section, perform the following:
Task |
Description |
---|---|
Connection |
Select a connection from the Connection drop-down list. To set up a connection, contact Zuora Support. |
Topic |
Select a topic from the Kafka for events ingestion. |
Data Format |
Select a data format from the Kafka events. Note that all the events in the Kafka topic must be in the same format, else the message ingestion fails. For example, use event definition generated from AVRO data file for the AVRO data format. |
Offset Reset Strategy |
Select a value from the following options:
|
- Click Save to save the Kafka source settings.
Meter with Kafka as a target
To create a meter with Kafka as the target, follow the instructions below:
- Create a Custom Meter. For more information, see Create a new meter using custom method.
- Select the Kafka as the target.
The Kafka settings page is displayed.
- Click Select to select an Event Definition on the Kafka setting page. Only event schema import from an AVSC schema is supported.
You can create or select an existing Event Definition or import an Event Definition. For more information, see Event Definitions. - Under the Kafka Settings section, perform the following:
Task |
Description |
---|---|
Connection |
Select a connection from the Connection drop-down list. To set up a connection, contact Zuora Support. |
Topic |
Select a topic from the Kafka for events output. |
Data Format |
Select a data format from the Kafka events. Note when you choose the AVRO format, you must also specify an event definition which is imported from an AVRO schema. |
Key Fields |
Click the Key Fields Format drop-down to select one or more key fields. The output usage event generates the partition key based on the order of key field selections. The key fields are connected by a “_” character to generate a final partition key if multiple fields are selected. For example, |
-
Click Save to save the Kafka target settings.