How to create Consumer Alert rules, Producer Alert rules and Infrastructure Alert rules.
Lenses provides a set with pre-configured Alert Rules and the ability to create Consumer Alert rules. When rules are enabled, Lenses monitors the relevant resources and triggers an Alert Event any time the condition is met. Events can be integrated with any third party system via the Alert Integration plugins.
One of the Alert Rule property is its alert id, which is a low level identifier of an Alert type (do not mistake with category). alert id is necessary when using API or CLI to manage alerts.
alert id
category
Access Management & permissions
Review the Alert matrix
Infrastructure are built-in rules. They can be enabled or disabled but also can be routed into any channel you configured.
From this screen, you can also edit their destination by clicking on the edit icon next to each rule.
Review the Alert matrix - Infrastructure
Consumer rules refer to the Kafka Consumers, and are based on threshold added by the user. Similarly to Infrastructure rules, you can also specify which channel they will be routed to. Alert id for Consumer alerts is 2000.
Alert id
2000
For example, you can notify a team when events are generated into a Dead Letter Queue topic, or the amount of events in a day, or in a time window does not meet the expected behavior. To create a new rule, click on the New Rule button from the listing page. Set the alert details, and select who should be notified when the alert rule triggers.
Dead Letter Queue
To edit, or delete an existing alert, use the edit icon next to the desired rule:
Data Produced Rules refer to the Kafka topics and are based on the threshold added by the user. Similarly to Infrastructure rules, you can also specify which channel they will be routed to.
From this screen, you can also edit their destination by clicking on the edit icon next to each rule. Data Produced rules cannot be disabled, but they can be deleted.
To create a new rule, click on the New Rule button from the listing page.
To edit Data Produced rule, click on the edit icon next to the desired rule from the listing page.
To delete Data Produced rule, click on the trash icon next to the desired rule from the listing page.
Connector task failures can be alerted on, additionally Lenses can restart the tasks with a backoff. Select the Apps tab, enter the channel to send alerts to and optionally enable restarts.
On this page