Skip to content

Latest commit

 

History

History
124 lines (79 loc) · 8.77 KB

File metadata and controls

124 lines (79 loc) · 8.77 KB
title Monitor Azure Synapse Analytics
description Start here to learn how to monitor Azure Synapse Analytics.
ms.date 03/25/2024
ms.custom horz-monitor
ms.topic overview
author ajagadish-24
ms.author ajagadish
ms.service azure-synapse-analytics

Monitor Azure Synapse Analytics

[!INCLUDE horz-monitor-intro]

Synapse Analytics monitoring options

You can collect and analyze metrics and logs for Azure Synapse Analytics built-in and serverless SQL pools, dedicated SQL pools, Azure Spark pools, and Data Explorer pools (preview). You can monitor current and historical activities for SQL, Apache Spark, pipelines and triggers, and integration runtimes.

There are several ways to monitor activities in your Synapse Analytics workspace.

Synapse Studio

Open Synapse Studio and navigate to the Monitor hub to see a history of all the activities in the workspace and which ones are active.

  • Under Integration, you can monitor pipelines, triggers, and integration runtimes.
  • Under Activities, you can monitor Spark and SQL activities.

For more information about monitoring in Synapse Studio, see Monitor your Synapse Workspace.

DMVs and Query Store

To programmatically monitor Synapse SQL via T-SQL, Synapse Analytics provides a set of Dynamic Management Views (DMVs). These views are useful to troubleshoot and identify performance bottlenecks with your workload. For more information, see DMVs and Monitor your Azure Synapse Analytics dedicated SQL pool workload using DMVs. For the list of DMVs that apply to Synapse SQL, see Dedicated SQL pool Dynamic Management Views (DMVs).

Query Store is a set of internal stores and DMVs that provide insight on query plan choice and performance. Query Store simplifies performance troubleshooting by helping find performance differences caused by query plan changes. For more information about enabling and using Query Store on Synapse Analytics databases, see Query Store.

Azure portal

You can monitor Synapse Analytics workspaces and pools directly from their Azure portal pages. On the left sidebar menu, you can access the Azure Activity log, or select Alerts, Metrics, Diagnostic settings, Logs, or Advisor recommendations from the Monitoring section. This article provides more details about these options.

[!INCLUDE horz-monitor-resource-types]

The resource types for Synapse Analytics include:

  • Microsoft.Synapse/workspaces
  • Microsoft.Synapse/workspaces/bigDataPools
  • Microsoft.Synapse/workspaces/kustoPools
  • Microsoft.Synapse/workspaces/scopePools
  • Microsoft.Synapse/workspaces/sqlPools

For more information about the resource types for Azure Synapse Analytics, see Azure Synapse Analytics monitoring data reference.

[!INCLUDE horz-monitor-data-storage]

Synapse Analytics supports storing monitoring data in Azure Storage or Azure Data Lake Storage Gen 2.

[!INCLUDE horz-monitor-platform-metrics]

For lists of available platform metrics for Synapse Analytics, see Synapse Analytics monitoring data reference.

In addition to Log Analytics, Synapse Analytics Apache Spark pools support Prometheus server metrics and Grafana dashboards. For more information, see Monitor Apache Spark Applications metrics with Prometheus and Grafana and Collect Apache Spark applications metrics using Prometheus APIs.

[!INCLUDE horz-monitor-resource-logs]

For the available resource log categories, their associated Log Analytics tables, and the log schemas for Synapse Analytics, see Synapse Analytics monitoring data reference.

[!INCLUDE horz-monitor-activity-log]

[!INCLUDE horz-monitor-analyze-data]

In addition to the basic tools, Synapse Analytics supports Query Store, DMVs, or Azure Data Explorer to analyze query history and performance. For a comparison of these analytics methods, see Historical query storage and analysis in Azure Synapse Analytics.

[!INCLUDE horz-monitor-external-tools]

[!INCLUDE horz-monitor-kusto-queries]

Sample queries

Activity Log query for failed operations: Lists all reports of failed operations over the past hour.

AzureActivity 
| where TimeGenerated > ago(1h)  
| where ActivityStatus == "Failed"

Synapse Link table fail events: Displays failed Synapse Link table events.

SynapseLinkEvent
| where OperationName == "TableFail"
| limit 100

[!INCLUDE horz-monitor-alerts]

Synapse Analytics alert rules

The following table lists some suggested alerts for Synapse Analytics. These alerts are just examples. You can set alerts for any metric, log entry, or activity log entry listed in the Synapse Analytics monitoring data reference.

Alert type Condition Description
Metric TempDB 75% Maximum local tempdb used percentage greater than or equal to 75% of threshold value
Metric Data Warehouse Unit (DWU) Usage near 100% Average DWU used percentage greater than 95% for 1 hour
Log Analytics SynapseSqlPoolRequestSteps ShuffleMoveOperation over 10 million rows

For more details about creating these and other recommended alert rules, see Create alerts for your Synapse Dedicated SQL Pool.

[!INCLUDE horz-monitor-advisor-recommendations]

Synapse Analytics dedicated SQL pool provides Azure Advisor recommendations to ensure your data warehouse workload is consistently optimized for performance. For more information, see Azure Advisor recommendations for dedicated SQL pool in Azure Synapse Analytics.

Related content