How can i set numberOfEvaluationPeriods and minFailingPeriodsToAlert for a static threshold alert ?

Shaan Kumar 0 Reputation points
2024-10-07T18:22:33.7+00:00

I want to create alert rule in azure with a constant fix threshold. Also i want to set numberOfEvaluationPeriods and minFailingPeriodsToAlert for the alert.
For example, lets say i have a alert rule which trigger if replication_lag is greater than 5 sec and only last 3 out of 5 numberOfEvaluationPeriods are failing

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,285 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 24,376 Reputation points MVP
    2024-10-08T13:48:59.0066667+00:00

    Hi,

    You can find information how to create Log alert here. On step 11 Advanced options you have Evaluation period and Number of violations setting which corresponds to numberOfEvaluationPeriods and minFailingPeriodsToAlert properties.

    Update: Static metric alerts does not have these options. Such options are available only for dynamic metric alert and Log Alert types.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.