Skip to content

Commit 0cb5579

Browse files
authored
Merge pull request #34008 from MicrosoftDocs/main
05/05/2025 AM Publishing
2 parents 2874ee1 + 36870b0 commit 0cb5579

28 files changed

+206
-163
lines changed

azure-sql/database-watcher-alerts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A detailed description of Azure Monitor Alerts in database watcher
55
author: lcwright
66
ms.author: lancewright
77
ms.reviewer: dfurman
8-
ms.date: 02/12/2025
8+
ms.date: 05/04/2025
99
ms.service: azure-sql
1010
ms.subservice: monitoring
1111
ms.topic: conceptual
@@ -20,7 +20,7 @@ monikerRange: "=azuresql||=azuresql-db||=azuresql-mi"
2020

2121
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.
2222

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.
2424

2525
To learn more about Azure Monitor Alerts, see:
2626

@@ -201,8 +201,8 @@ You can see all alert instances and their state on the Azure Monitor **Alerts**
201201

202202
- [What are Azure Monitor alerts?](/azure/azure-monitor/alerts/alerts-overview)
203203
- [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)
206206
- [Database watcher data collection and datasets (preview)](database-watcher-data.md)
207207
- [Analyze database watcher monitoring data (preview)](database-watcher-analyze.md)
208208
- [Database watcher FAQ](database-watcher-faq.yml)

azure-sql/database-watcher-analyze.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Examples of analytical queries that use database watcher monitoring
55
author: lcwright
66
ms.author: lancewright
77
ms.reviewer: dfurman
8-
ms.date: 02/07/2025
8+
ms.date: 05/04/2025
99
ms.service: azure-sql
1010
ms.subservice: monitoring
1111
ms.topic: how-to
@@ -778,7 +778,7 @@ You can connect to your Azure Data Explorer or Real-Time Analytics database from
778778
>
779779
> 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.
780780
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.
782782

783783
### Use T-SQL to analyze resource consumption over time
784784

@@ -1661,8 +1661,8 @@ ORDER BY wait_time_ms_per_sec DESC;
16611661
## Related content
16621662

16631663
- [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)
16661666
- [Database watcher alerts (preview)](database-watcher-alerts.md)
16671667
- [Database watcher FAQ](database-watcher-faq.yml)
16681668
- [Kusto Query Language learning resources](/azure/data-explorer/kql-learning-resources)

azure-sql/database-watcher-data.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A detailed description of SQL monitoring data collected by database
55
author: lcwright
66
ms.author: lancewright
77
ms.reviewer: dfurman
8-
ms.date: 12/20/2024
8+
ms.date: 05/04/2025
99
ms.service: azure-sql
1010
ms.subservice: monitoring
1111
ms.topic: conceptual
@@ -40,13 +40,13 @@ To further reduce the risk of impact to application workloads, all database watc
4040

4141
# [SQL managed instance](#tab/sqlmi)
4242

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.
4444

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.
4646

4747
> [!NOTE]
4848
>
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.
5050
5151
```sql
5252
USE master;
@@ -75,7 +75,7 @@ IF EXISTS (
7575
FROM sys.resource_governor_configuration
7676
WHERE classifier_function_id <> 0 OR is_enabled <> 0
7777
)
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;
7979

8080
CREATE RESOURCE POOL database_watcher_resource_pool
8181
WITH (MIN_CPU_PERCENT = 5, MAX_CPU_PERCENT = 10, CAP_CPU_PERCENT = 30);
@@ -95,7 +95,7 @@ END CATCH;
9595
```
9696

9797
> [!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;`.
9999
100100
---
101101

@@ -105,7 +105,7 @@ You might observe gaps in the collected data if the overall resource utilization
105105

106106
### Data collection in elastic pools
107107

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.
109109

110110
> [!TIP]
111111
> 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
290290

291291
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.
292292

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.
294294

295295
## Related content
296296

297297
- [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)
300300
- [Analyze database watcher monitoring data (preview)](database-watcher-analyze.md)
301301
- [Database watcher alerts (preview)](database-watcher-alerts.md)
302302
- [Database watcher FAQ](database-watcher-faq.yml)

azure-sql/database-watcher-faq.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
description: Frequently asked questions about database watcher for Azure SQL
66
author: lcwright
77
ms.author: lancewright
8-
ms.date: 02/07/2025
8+
ms.date: 05/04/2025
99
ms.reviewer: wiassaf, dfurman
1010
ms.service: azure-sql
1111
ms.subservice: monitoring
@@ -70,7 +70,7 @@ sections:
7070
questions:
7171
- question: |
7272
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.
7474
7575
- question: |
7676
Can I create and configure a watcher with PowerShell or Azure CLI?
@@ -95,7 +95,7 @@ sections:
9595
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)
9696
9797
- 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?
9999
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.
100100
101101
- question: |
@@ -117,7 +117,7 @@ sections:
117117
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.
118118
119119
- question: |
120-
Will database watcher impact my workload performance?
120+
Will database watcher affect my workload performance?
121121
answer: This is unlikely. For details, see [Data collection](database-watcher-data.md#interaction-between-database-watcher-and-application-workloads).
122122
123123
- question: |
@@ -134,7 +134,7 @@ sections:
134134
135135
- question: |
136136
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).
138138
139139
- question: |
140140
How does it authenticate to monitoring targets?
@@ -168,8 +168,8 @@ additionalContent: |
168168
## Related content
169169
170170
- [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)
173173
- [Database watcher data collection and datasets](database-watcher-data.md)
174174
- [Analyze database watcher monitoring data](database-watcher-analyze.md)
175175
- [Database watcher alerts](database-watcher-alerts.md)

0 commit comments

Comments
 (0)