Lindorm stream engine tasks may experience processing latency or errors during runtime. Subscribe to relevant alerts to ensure a timely response. This topic describes how to configure stream engine alerts.
Stream engine metrics
Job latency alert
The core metric for job latency alerts is CurrentEmitEventTimeLag = EmitTime - EventTime. This metric measures the difference between the processing time of the source operator and the event time of the record.
Job restart count alert
The metric for job restarts is JobNumRestarts. Set the alert threshold lower than the task's maximum number of retries. For example, if the maximum number of retries is 30, set the alert threshold to 20.
Create an alert rule
Log on to the Lindorm console. In the upper-left corner of the page, select the region of the instance. On the Instances page, click the ID of the target instance or click View Instance Details in the Actions column for the instance.
-
In the left-side navigation pane, click Alerts. The Lindorm alert list page is displayed.
-
Click Create Lindorm Alert Rule.
-
On the Create Lindorm Alert Rule page, configure the following parameters.
Parameter
Description
Alert name
The name of the alert.
Check type
Select Static Threshold.
Lindorm cluster
The Lindorm instance for this alert rule. Automatically set to the current instance.
Alert group
Select
Lindorm-Stream Engine.Alert metric
Select the metric to monitor. Key metrics include Job latency alert and Stream engine job restart count alert.
In the Alerting condition section, set the trigger threshold. For example, for a job latency alert, the condition triggers if latency exceeds
60seconds. The filter defaults to none.