What is a Kafka trigger?
Kafka trigger
A Kafka trigger is a method of event-driven automation. When a Kafka trigger is configured, a workflow is executed in response to a Kafka event notification. For example, if a Kafka notification is received indicating that a port is down, a workflow execution can be triggered to bring up another port and move the services from the down port to the new port.
A Kafka trigger consists of a Kafka topic and event type to monitor, and a trigger rule. The trigger rule is a statement in JSONPath syntax that declares the matching criteria for the workflow to run.
Restrictions apply on topics that can be used for triggering; see the Workflow Manager APIs tutorial on the Network Developer Portal.
By default, the Kafka trigger is limited to 10 executions per minute. This can be changed by updating the Kafka trigger.
See the Network Automation tutorial on the Network Developer Portal for details about working with Kafka triggers.
Sample Kafka trigger
The Kafka trigger below is configured to execute the WFM_example workflow if an alarm creation event is received on the nsp-db-fm (fault management) Kafka topic for a specified NE.