You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After you [create and configure](database-watcher-manage.md) a watcher, you can set up [Azure Monitor Alerts](/azure/azure-monitor/alerts/alerts-overview) to receive notifications about high resource usage, notable workload patterns, and other conditions across your Azure SQL estate that might require attention. To do this, you create a [log search alert rule](/azure/azure-monitor/alerts/alerts-create-log-alert-rule) that queries the data store of a watcher on a schedule.
22
22
23
-
To help you create alert rules, database watcher includes templates for common alert conditions. Once an alert rule is created from a database watcher template, you can manage it just like any other alert rule in Azure Monitor Alerts. You can use all capabilities of Azure alerting: email, SMS, and phone notifications, integration with ITSM products, webhooks, event hubs, and more. You can customize alert rules created from database watcher templates, or create your own alert rules.
23
+
To help you create alert rules, database watcher includes templates for common alert conditions. Once an alert rule is created from a template, you can manage it just like any other alert rule in Azure Monitor Alerts. You can use all capabilities of Azure alerting: email, SMS, and phone notifications, integration with ITSM products, webhooks, event hubs, and more. You can customize alert rules created from database watcher templates, or create your own alert rules.
24
24
25
25
To learn more about Azure Monitor Alerts, see:
26
26
@@ -201,8 +201,8 @@ You can see all alert instances and their state on the Azure Monitor **Alerts**
201
201
202
202
-[What are Azure Monitor alerts?](/azure/azure-monitor/alerts/alerts-overview)
203
203
-[Monitor Azure SQL workloads with database watcher (preview)](database-watcher-overview.md)
204
-
-[Quickstart: Create a database watcher to monitor Azure SQL (preview)](database-watcher-quickstart.md)
205
-
-[Create and configure a database watcher (preview)](database-watcher-manage.md)
204
+
-[Quickstart: Create a watcher to monitor Azure SQL (preview)](database-watcher-quickstart.md)
205
+
-[Create and configure a watcher (preview)](database-watcher-manage.md)
206
206
-[Database watcher data collection and datasets (preview)](database-watcher-data.md)
207
207
-[Analyze database watcher monitoring data (preview)](database-watcher-analyze.md)
Copy file name to clipboardExpand all lines: azure-sql/database-watcher-analyze.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Examples of analytical queries that use database watcher monitoring
5
5
author: lcwright
6
6
ms.author: lancewright
7
7
ms.reviewer: dfurman
8
-
ms.date: 02/07/2025
8
+
ms.date: 05/04/2025
9
9
ms.service: azure-sql
10
10
ms.subservice: monitoring
11
11
ms.topic: how-to
@@ -778,7 +778,7 @@ You can connect to your Azure Data Explorer or Real-Time Analytics database from
778
778
>
779
779
> The [SQL to Kusto Query Language cheat sheet](/azure/data-explorer/kusto/query/sql-cheat-sheet) can help you translate your T-SQL queries to KQL if you find that T-SQL support is insufficient for your needs, or if you want to convert your T-SQL queries to KQL to use its advanced analytical capabilities.
780
780
781
-
The following examples show you how to query monitoring data in the database watcher data store using T-SQL.
781
+
The following examples show you how to query monitoring data in the watcher data store using T-SQL.
782
782
783
783
### Use T-SQL to analyze resource consumption over time
784
784
@@ -1661,8 +1661,8 @@ ORDER BY wait_time_ms_per_sec DESC;
1661
1661
## Related content
1662
1662
1663
1663
-[Monitor Azure SQL workloads with database watcher (preview)](database-watcher-overview.md)
1664
-
-[Quickstart: Create a database watcher to monitor Azure SQL (preview)](database-watcher-quickstart.md)
1665
-
-[Create and configure a database watcher (preview)](database-watcher-manage.md)
1664
+
-[Quickstart: Create a watcher to monitor Azure SQL (preview)](database-watcher-quickstart.md)
1665
+
-[Create and configure a watcher (preview)](database-watcher-manage.md)
Copy file name to clipboardExpand all lines: azure-sql/database-watcher-data.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: A detailed description of SQL monitoring data collected by database
5
5
author: lcwright
6
6
ms.author: lancewright
7
7
ms.reviewer: dfurman
8
-
ms.date: 12/20/2024
8
+
ms.date: 05/04/2025
9
9
ms.service: azure-sql
10
10
ms.subservice: monitoring
11
11
ms.topic: conceptual
@@ -40,13 +40,13 @@ To further reduce the risk of impact to application workloads, all database watc
40
40
41
41
# [SQL managed instance](#tab/sqlmi)
42
42
43
-
If there is resource contention between your application workloads and database watcher monitoring queries in Azure SQL Managed Instance, you can enable [Resource Governor](/sql/relational-databases/resource-governor/resource-governor) to limit resource consumption by the monitoring queries.
43
+
If there is resource contention between your application workloads and database watcher monitoring queries in Azure SQL Managed Instance, you can enable [resource governor](/sql/relational-databases/resource-governor/resource-governor) to limit resource consumption by the monitoring queries.
44
44
45
-
The following example configures Resource Governor on a SQL managed instance. It limits CPU consumption by database watcher queries to 30% when there is no CPU contention. When there is CPU contention, this configuration reserves 5% of CPU for the monitoring queries and limits their CPU usage to 10%. It also limits the memory grant size for each monitoring query to 10% of the available memory.
45
+
The following example configures resource governor on a SQL managed instance. It limits CPU consumption by database watcher queries to 30% when there is no CPU contention. When there is CPU contention, this configuration reserves 5% of CPU for the monitoring queries and limits their CPU usage to 10%. It also limits the memory grant size for each monitoring query to 10% of the available memory.
46
46
47
47
> [!NOTE]
48
48
>
49
-
> If you make Resource Governor configuration too restrictive, for example by using low `MAX_CPU_PERCENT` or `CAP_CPU_PERCENT` values, database watcher might not be able to collect data reliably or at all because of insufficient compute resources.
49
+
> If you make resource governor configuration too restrictive, for example by using low `MAX_CPU_PERCENT` or `CAP_CPU_PERCENT` values, database watcher might not be able to collect data reliably or at all because of insufficient compute resources.
50
50
51
51
```sql
52
52
USE master;
@@ -75,7 +75,7 @@ IF EXISTS (
75
75
FROMsys.resource_governor_configuration
76
76
WHERE classifier_function_id <>0OR is_enabled <>0
77
77
)
78
-
THROW 50001, 'Resource Governor is already configured. No changes were made.', 1;
78
+
THROW 50001, 'A resource governor configuration is already present. No changes were made.', 1;
79
79
80
80
CREATE RESOURCE POOL database_watcher_resource_pool
81
81
WITH (MIN_CPU_PERCENT =5, MAX_CPU_PERCENT =10, CAP_CPU_PERCENT =30);
@@ -95,7 +95,7 @@ END CATCH;
95
95
```
96
96
97
97
> [!TIP]
98
-
> To make a new Resource Governor configuration effective on a high availability secondary replica of a SQL managed instance immediately, [connect](./database/read-scale-out.md#connect-to-a-read-only-replica) to the replica and execute `ALTER RESOURCE GOVERNOR RECONFIGURE;`.
98
+
> To make a new resource governor configuration effective on a high availability secondary replica of a SQL managed instance immediately, [connect](./database/read-scale-out.md#connect-to-a-read-only-replica) to the `master` database on the replica and execute `ALTER RESOURCE GOVERNOR RECONFIGURE;`.
99
99
100
100
---
101
101
@@ -105,7 +105,7 @@ You might observe gaps in the collected data if the overall resource utilization
105
105
106
106
### Data collection in elastic pools
107
107
108
-
To monitor an elastic pool, you must designate one database in the pool as the **anchor database**. Database watcher connects to the anchor database. Because the watcher [holds](database-watcher-overview.md#watcher-authorization) the `VIEW SERVER PERFORMANCE STATE` permission, system views in the anchor database provide monitoring data for the pool as a whole.
108
+
To monitor an elastic pool, you must designate one database in the pool as the **anchor database**. A watcher connects to the anchor database. Because the watcher [holds](database-watcher-overview.md#watcher-authorization) the `VIEW SERVER PERFORMANCE STATE` permission, system views in the anchor database provide monitoring data for the pool as a whole.
109
109
110
110
> [!TIP]
111
111
> You can add an empty database to each elastic pool you want to monitor, and designate it as the anchor database. This way, you can move other databases in and out of the pool, or between pools, without interrupting elastic pool monitoring.
@@ -290,13 +290,13 @@ For each SQL target type, datasets have common columns, as described in the foll
290
290
291
291
A dataset has both `sample_time_utc` and `collection_time_utc` columns if it contains samples observed before the row was collected by database watcher. Otherwise, the observation time and collection time are the same, and the dataset contains only the `sample_time_utc` column.
292
292
293
-
For example, the `sqldb_database_resource_utilization` dataset is derived from the [sys.dm_db_resource_stats](/sql/relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database) dynamic management view (DMV). The DMV contains the `end_time` column, which is the observation time for each row reporting aggregate resource statistics for a 15-second interval. This time is reported in the `sample_time_utc` column. When database watcher queries this DMV, the result set might contain multiple rows, each with a different `end_time`. All of these rows have the same `collection_time_utc` value.
293
+
For example, the `sqldb_database_resource_utilization` dataset is derived from the [sys.dm_db_resource_stats](/sql/relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database) dynamic management view (DMV). The DMV contains the `end_time` column, which is the observation time for each row reporting aggregate resource statistics for a 15-second interval. This time is reported in the `sample_time_utc` column. When a watcher queries this DMV, the result set might contain multiple rows, each with a different `end_time`. All of these rows have the same `collection_time_utc` value.
294
294
295
295
## Related content
296
296
297
297
-[Monitor Azure SQL workloads with database watcher (preview)](database-watcher-overview.md)
298
-
-[Quickstart: Create a database watcher to monitor Azure SQL (preview)](database-watcher-quickstart.md)
299
-
-[Create and configure a database watcher (preview)](database-watcher-manage.md)
298
+
-[Quickstart: Create a watcher to monitor Azure SQL (preview)](database-watcher-quickstart.md)
299
+
-[Create and configure a watcher (preview)](database-watcher-manage.md)
300
300
-[Analyze database watcher monitoring data (preview)](database-watcher-analyze.md)
Copy file name to clipboardExpand all lines: azure-sql/database-watcher-faq.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
description: Frequently asked questions about database watcher for Azure SQL
6
6
author: lcwright
7
7
ms.author: lancewright
8
-
ms.date: 02/07/2025
8
+
ms.date: 05/04/2025
9
9
ms.reviewer: wiassaf, dfurman
10
10
ms.service: azure-sql
11
11
ms.subservice: monitoring
@@ -70,7 +70,7 @@ sections:
70
70
questions:
71
71
- question: |
72
72
Can I create and configure a watcher using Bicep, an ARM template, or Terraform?
73
-
answer: Yes. See [Create a database watcher](/samples/azure/azure-quickstart-templates/create-watcher/) for Bicep and ARM template examples you can customize to your needs. See [Azure resource reference](/azure/templates/microsoft.databasewatcher/watchers) documentation for Bicep, ARM template, and Terraform resource definitions.
73
+
answer: Yes. See [Create a watcher](/samples/azure/azure-quickstart-templates/create-watcher/) for Bicep and ARM template examples you can customize to your needs. See [Azure resource reference](/azure/templates/microsoft.databasewatcher/watchers) documentation for Bicep, ARM template, and Terraform resource definitions.
74
74
75
75
- question: |
76
76
Can I create and configure a watcher with PowerShell or Azure CLI?
@@ -95,7 +95,7 @@ sections:
95
95
answer: You can use a database on an [Azure Data Explorer cluster](/azure/data-explorer/data-explorer-overview), on a [free Azure Data Explorer cluster](/azure/data-explorer/start-for-free), or in [Real-Time Analytics](/fabric/real-time-analytics/overview) in Microsoft Fabric. To compare between these options, see [What is the difference between Real-Time Analytics and Azure Data Explorer?](/fabric/real-time-analytics/realtime-analytics-compare)
96
96
97
97
- question: |
98
-
I already have an Azure Data Explorer cluster. Can I use it for my database watcher data store?
98
+
I already have an Azure Data Explorer cluster. Can I use it as my watcher's data store?
99
99
answer: Yes, if [streaming ingestion](database-watcher-manage.md#streaming-ingestion) is enabled on this cluster. Create a new database and grant the managed identity of a watcher [access](database-watcher-manage.md#grant-access-to-data-store) to this database. For smaller cluster SKUs, and depending on the query and ingestion workloads already running, you might need to [scale](database-watcher-manage.md#scale-azure-data-explorer-cluster) the cluster to support the additional load.
100
100
101
101
- question: |
@@ -117,7 +117,7 @@ sections:
117
117
answer: A remote data collection agent running on a Microsoft managed compute hosting platform connects to your Azure SQL resources, periodically executes T-SQL queries to collect monitoring data from SQL system views, and ingests this data into the data store.
118
118
119
119
- question: |
120
-
Will database watcher impact my workload performance?
120
+
Will database watcher affect my workload performance?
121
121
answer: This is unlikely. For details, see [Data collection](database-watcher-data.md#interaction-between-database-watcher-and-application-workloads).
122
122
123
123
- question: |
@@ -134,7 +134,7 @@ sections:
134
134
135
135
- question: |
136
136
How does it connect to monitoring targets?
137
-
answer: Database watcher can use [Azure Private Link](/azure/private-link/private-link-overview) to connect to monitoring targets. When configuring a watcher, create managed private endpoints for your Azure SQL resources. The resource owner must approve each private endpoint for database watcher to use it. Public connectivity is supported as well. For more information, see [Network connectivity](database-watcher-overview.md#network-connectivity).
137
+
answer: Database watcher can use [Azure Private Link](/azure/private-link/private-link-overview) to connect to monitoring targets. When configuring a watcher, create managed private endpoints for your Azure SQL resources. The resource owner must approve each private endpoint for a watcher to use it. Public connectivity is supported as well. For more information, see [Network connectivity](database-watcher-overview.md#network-connectivity).
138
138
139
139
- question: |
140
140
How does it authenticate to monitoring targets?
@@ -168,8 +168,8 @@ additionalContent: |
168
168
## Related content
169
169
170
170
- [Monitor Azure SQL workloads with database watcher](database-watcher-overview.md)
171
-
- [Quickstart: Create a database watcher to monitor Azure SQL](database-watcher-quickstart.md)
172
-
- [Create and configure a database watcher](database-watcher-manage.md)
171
+
- [Quickstart: Create a watcher to monitor Azure SQL](database-watcher-quickstart.md)
172
+
- [Create and configure a watcher](database-watcher-manage.md)
173
173
- [Database watcher data collection and datasets](database-watcher-data.md)
0 commit comments