Alert Monitor email on Data Factory is not working

Hector Huerta Tricolor 106 Reputation points
2023-01-12T23:47:35.0833333+00:00

User's image

When i created an alert notification I'm receiving just one email at the beginning, i have a pipeline that is failing each one hour but i was not receiving the emails.

im using Failed pipeline runs metrics and Failed activity runs metrics as criteria.

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,423 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,135 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 25,486 Reputation points MVP
    2023-01-13T08:01:32+00:00

    Hi,

    In this case it might be better to disable Automatically resolve alerts (auto mitigate feature). Description for the feature: "Select to make the alert stateful. When an alert is stateful, the alert is resolved when the condition is no longer met.
    If you don't select this checkbox, metric alerts are stateless. Stateless alerts fire each time the condition is met, even if alert already fired.
    The frequency of notifications for stateless metric alerts differs based on the alert rule's configured frequency:
    Alert frequency of less than 5 minutes: While the condition continues to be met, a notification is sent somewhere between one and six minutes.
    Alert frequency of more than 5 minutes: While the condition continues to be met, a notification is sent between the configured frequency and double the frequency. For example, for an alert rule with a frequency of 15 minutes, a notification is sent somewhere between 15 to 30 minutes."

    That way you will receive notification every time the threshold is met.

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

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,501 Reputation points Microsoft Employee
    2023-01-13T09:30:29.7266667+00:00

    Hi Hector Huerta Tricolor,

    Thank you for posting query in Microsoft Q&A Platform.

    Here you are using build in azure monitor Alert rules mechanism to trigger alerts for you. Whenever your target criteria meet that time only alert will come. Unfortunately, in your screenshot target criteria is not visible. Kindly check the criteria you find there and revalidate it.

    Between, these alerts are not customizable in terms are format. Also, these alerts actually work based on logs from log analytics for your azure data factory. Any specific reason for using these?

    I would recommend using custom alerts which you can trigger at the end of pipeline itself while pipeline fails. For example, you can configure logic apps to send email and at the end of pipeline if its fails then trigger that logic app to send email.

    Kindly check below video, for better understanding.

    Send Email alert when Pipeline fails in Azure Data Factory

    Hope this helps.


    Please consider hitting Accept Answer button. Accepted answer helps community as well.

    0 comments No comments

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.