Best Way Slack Alert

Hanna 220 Reputation points
2023-10-28T17:45:39.9733333+00:00

What is the best way to display detailed error messages in Azure Data Factories?

1: Create a log workspace, configure Data Factories to send logs there, query it every 5 minutes using alerts, and trigger an action group through a webhook in a Logic App when the query returns a row. In the alert, I include dimensions for each column, such as start, end, and status. I then extract these dimensions from the JSON and transform them into a message in Slack.

2: Set up a 5-minute recurrence in a Logic App. Each time, query the logs with a condition "time generated >= ago(5m)." If it returns rows, post the information in Slack; otherwise, stop the execution.

Which approach would be more efficient and cost-effective?

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,661 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,554 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,647 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 33,866 Reputation points Volunteer Moderator
    2023-10-28T18:22:16.2833333+00:00

    For the 1st approach, it is more granular control over alert conditions and logic since it can integrate with other Azure services quickly through Logic Apps.

    Alerts can be easily managed and configured for different conditions.

    In the other hand, you may have a higher cost due to multiple services involved (log workspace, alerting, logic app execution) and I assume that it is slightly more complex to set up initially.

    For the 2nd approach, I can say it is simpler to set up and manage as it's primarily centered around the Logic App and can be more cost-effective if only executed when there's an error (assuming low error rate).

    But it is less flexibile compared to the 1st method, especially if you want to integrate with other services in the future.

    Be careful it might not be as scalable as you want especially when you want to add more complex logic or conditions in the future.

    In my opinion, the 1st method may be more efficient in terms of functionality and scalability.

    With Logic Apps and Alerts combined, you have more control and flexibility over how and when you want to be notified, and it can be easily expanded upon in the future.

    The 2nd method could be more cost-effective, especially if the Logic App only runs when there's an error.

    However, the cost difference might not be significant unless you have a very high volume of logs or errors.


0 additional answers

Sort by: Most helpful

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.