Skip to content

Commit d5028e8

Browse files
authored
Update sys-resource-stats-azure-sql-database.md
1 parent 82833f3 commit d5028e8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/relational-databases/system-catalog-views/sys-resource-stats-azure-sql-database.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ ms.technology: system-objects
1212
ms.tgt_pltfrm: ""
1313
ms.topic: "language-reference"
1414
f1_keywords:
15-
- "resource_stats"
16-
- "sys.resource_stats"
17-
- "sys.resource_stats_TSQL"
18-
- "resource_stats_TSQL"
15+
- resource_stats
16+
- sys.resource_stats
17+
- sys.resource_stats_TSQL
18+
- resource_stats_TSQL
1919
dev_langs:
2020
- "TSQL"
2121
helpviewer_keywords:
2222
- "sys.resource_stats"
2323
- "resource_stats"
2424
ms.assetid: 02379a1b-3622-4578-8c59-a1b8f1a17914
2525
caps.latest.revision: 28
26-
author: "CarlRabeler"
26+
author: CarlRabeler
2727
ms.author: "carlrab"
2828
manager: craigg
2929
monikerRange: "= azuresqldb-current || = sqlallproducts-allversions"
3030
---
3131
# sys.resource_stats (Azure SQL Database)
3232
[!INCLUDE[tsql-appliesto-xxxxxx-asdb-xxxx-xxx-md](../../includes/tsql-appliesto-xxxxxx-asdb-xxxx-xxx-md.md)]
3333

34-
Returns CPU usage and storage data for an Azure SQL Database. The data is collected and aggregated within five-minute intervals. For each user database, there is one row for every five-minute reporting window in which there is change in resource consumption. The data returned includes CPU usage, storage size change or database SKU modification. Idle databases with no changes may not have rows for every five-minute interval. Historical data is retained for approximately 14 days.
34+
Returns CPU usage and storage data for an Azure SQL Database. The data is collected and aggregated within five-minute intervals. For each user database, there is one row for every five-minute reporting window in which there is a change in resource consumption. The data returned includes CPU usage, storage size change, and database SKU modification. Idle databases with no changes may not have rows for every five-minute interval. Historical data is retained for approximately 14 days.
3535

3636
The **sys.resource_stats** view has different definitions depending on the version of the Azure SQL Database Server that the database is associated with. Consider these differences and any modifications your application requires when upgrading to a new server version.
3737

@@ -50,7 +50,7 @@ monikerRange: "= azuresqldb-current || = sqlallproducts-allversions"
5050
|max_worker_percent|**decimal(5,2)**|Maximum concurrent workers (requests) in percentage based on the limit of the database’s service tier.<br /><br /> Maximum is currently calculated for the five-minute interval based on the 15-second samples of concurrent worker counts.|
5151
|max_session_percent|**decimal(5,2)**|Maximum concurrent sessions in percentage based on the limit of the database’s service tier.<br /><br /> Maximum is currently calculated for the five-minute interval based on the 15-second samples of concurrent session counts.|
5252
|dtu_limit|**int**|Current max database DTU setting for this database during this interval. |
53-
|allocated_storage_in_megabytes|**float**|The amount of formatted file space in MB made available for storing database data. This is also referred to as data space allocated. For more information see: [File space management in SQL DB](https://docs.microsoft.com/azure/sql-database/sql-database-file-space-management)|
53+
|allocated_storage_in_megabytes|**float**|The amount of formatted file space in MB made available for storing database data. Formatted file space is also referred to as data space allocated. For more information, see: [File space management in SQL DB](https://docs.microsoft.com/azure/sql-database/sql-database-file-space-management)|
5454

5555
> [!TIP]
5656
> For more context about these limits and service tiers, see the topics [Service Tiers](https://azure.microsoft.com/documentation/articles/sql-database-service-tiers/).
@@ -63,7 +63,7 @@ monikerRange: "= azuresqldb-current || = sqlallproducts-allversions"
6363

6464
When a database is a member of an elastic pool, resource statistics presented as percent values, are expressed as the percent of the max limit for the databases as set in the elastic pool configuration.
6565

66-
For a more granular view of this data, use **sys.dm_db_resource_stats** dynamic management view in a user database. This view captures data every 15-seconds and maintains historical data for 1 hour. For more information, see [sys.dm_db_resource_stats &#40;Azure SQL Database&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database.md).
66+
For a more granular view of this data, use **sys.dm_db_resource_stats** dynamic management view in a user database. This view captures data every 15 seconds and maintains historical data for 1 hour. For more information, see [sys.dm_db_resource_stats &#40;Azure SQL Database&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database.md).
6767

6868
## Examples
6969
The following example returns all databases that are averaging at least 80% of compute utilization over the last one week.

0 commit comments

Comments
 (0)