Azure Data Factory Monitoring Best Practices
Azure Data Factory Monitoring Best Practices
• As best practice for the Azure Data factory monitoring, log needs to be captured systematically.
• By default, Azure kept the logs for pipeline run maximum up to 45 days. Hence after 45 days your
adf logs will not be accessible thereafter.
• Configure your diagnostic logs to a storage account for auditing or manual inspection. You can
use the diagnostic settings to specify the retention time in days.
• We should configure the log analytics workspace to analyze the logs using the queries.
• Add the Azure Data factory Monitoring service pack from the Azure Marketplace.
(https://azuremarketplace.microsoft.com/en-us/marketplace/apps/microsoft.azuredatafactoryanaly
tics?tab=overview)
• It will provide a one click monitoring solution across the data factories. It has a built-in dashboard
as well for quick access to adf log metrics.
Main Types of Alerts
• Metric Alerts
• Metric alert rules are specified with a target criteria for a metric within the resource to be monitored. Based
on the condition, notifications are sent to an action group when the alert rule fires.
• These alerts are triggered based on log searches that are automatically run at periodic internals. Advanced
alerting for non-fatal errors, warnings, and business logic errors can be created in Azure Monitor and Log
Analytics.
• A few more attributes of log analytics alerts are:
• Provides long term storage of logs (default ADF logging period is 45 days) which can enable more
sophisticated analytics.
• For example, trending analysis using historical comparisons of pipeline performance and activities.
• Ability to merge various metrics and observe the relationship between them.
• Able to analyze all types of logs including any custom logs written for a specific business case.
• Can be checked from the Log Analytics workspace in the Azure portal.
Azure Data Factory Alerts
• We can implement native ADF Alerts as part of an Azure implementation for a client.
• We can create two alert rules: one to monitor pipeline failures and the other for trigger failures.
• https://www.bluegranite.com/blog/monitoring-azure-data-factory-v2-
using-power-bi
Custom logs of your data pipelines and how to build a Data Catalog