Creating alert conditions
When setting up a Coralogix alert condition, you may configure up to five condition rules, each with a threshold, timeframe, and individual priority. Priority values range from P1 through P5, with P1 being the highest priority and P5 being the lowest.
Condition rules determine the alert priority when the alert definition conditions are met and an alert is triggered. For instance, breaching a P1 threshold triggers a P1 alert, while breaching a lower-priority threshold triggers a corresponding alert (for example, P2). If a threshold meets multiple priorities, the highest priority is applied.
Triggered alert conditions with their associated priority can be viewed in Incidents.
Multiple alert conditions are supported for the following alert types:
Set up an alert condition
Select a condition type
You can select whether to be alerted when the conditions for an alert definition are more than or less than a specific threshold.
Define condition rules
Configure up to five condition rules for your alert definition.
Threshold alerts for metrics allow the user to set up a threshold when conditions are met for at least , at least once, or for over x% in a specific time period.
for at least: This option specifies that the condition should be met for the entire specified time period. For example, if you setfor at least 5 minutes, it means the metric must exceed the threshold continuously for the entire 5 minutes duration.at least once: This option is the most minimal condition. It means the alert triggers when the threshold is crossed at least one time within the specified time period. For example,at least once in 5 minutesmeans that if the metric exceeds the threshold even once within that 5-minute window, the alert triggers.for over x%: This option allows you to set a duration percentage rather than a number of times. It specifies that the condition must hold true for more than a certain percentage of the time within the selected time window. For example, if you setfor over 10% of 10 minutes, the metric must exceed the threshold for more than 1 minute (10% of 10 minutes) in that time period for the alert to trigger. If the percentage is set to 0 and the query crosses the threshold once, an alert is triggered. If the percentage is set to 100, this means all of the time window values should cross the threshold.
Limitations
In logs threshold, logs ratio, and metric threshold alerts, all condition rules must use time windows from the same range:
| Range | Time windows |
|---|---|
| 1 | 1 minute to 30 minutes |
| 2 | Over 30 minutes and under 12 hours |
| 3 | 12 hours to 36 hours |
For example, if one rule uses a 1-hour time window, every other rule must use a window over 30 minutes and under 12 hours, such as 45 minutes or 8 hours. Until all rules are in the same range, the alert wizard shows an error under the rules and you can't continue or save the alert.
Related resources
Next steps
Create metric alerts directly from numeric log fields with Log2Metric alert.