Skip to content

Commit 9148a0e

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into heidist-search
2 parents ecc214d + 822bac2 commit 9148a0e

17 files changed

+98
-424
lines changed

.openpublishing.redirection.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
"redirect_url": "/azure/machine-learning/data-science-virtual-machine/reference-deprecation",
356356
"redirect_document_id": true
357357
},
358-
358+
359359
{
360360
"source_path": "articles/machine-learning/service/how-to-understand-accuracy-metrics.md",
361361
"redirect_url": "/azure/machine-learning/service/how-to-understand-automated-ml",
@@ -50683,6 +50683,16 @@
5068350683
"source_path": "articles/chef/index.yml",
5068450684
"redirect_url": "/azure/developer/chef/",
5068550685
"redirect_document_id": false
50686+
},
50687+
{
50688+
"source_path": "articles/security/fundamentals/database-security-overview.md",
50689+
"redirect_url": "/azure/sql-database/sql-database-security-overview",
50690+
"redirect_document_id": false
50691+
},
50692+
{
50693+
"source_path": "articles/security/fundamentals/database-best-practices.md",
50694+
"redirect_url": "/azure/sql-database/sql-database-security-best-practice",
50695+
"redirect_document_id": false
5068650696
}
5068750697
]
5068850698
}

articles/app-service/environment/create-ilb-ase.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ To create an ILB ASE:
5656

5757
![ASE creation](media/creating_and_using_an_internal_load_balancer_with_app_service_environment/createilbase.png)
5858

59+
> [!NOTE]
60+
> The App Service Environment name must be no more than 37 characters.
61+
5962
6. Select Networking
6063

6164
7. Select or create a Virtual Network. If you create a new VNet here, it will be defined with an address range of 192.168.250.0/23. To create a VNet with a different address range or in a different resource group than the ASE, use the Azure Virtual Network creation portal.
@@ -66,6 +69,7 @@ To create an ILB ASE:
6669

6770
7. Select **Review and Create** then select **Create**.
6871

72+
6973
## Create an app in an ILB ASE ##
7074

7175
You create an app in an ILB ASE in the same way that you create an app in an ASE normally.

articles/cosmos-db/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,8 @@
10371037
href: monitor-cosmos-db.md
10381038
- name: Monitor server-side latency
10391039
href: monitor-server-side-latency.md
1040+
- name: Monitor request unit usage
1041+
href: monitor-request-unit-usage.md
10401042
- name: Monitor with diagnostic logs
10411043
href: cosmosdb-monitor-resource-logs.md
10421044
- name: Audit control plane logs
119 KB
Loading
83.1 KB
Loading
125 KB
Loading
186 KB
Loading
104 KB
Loading
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: Monitor the throughput usage of an operation in Azure Cosmos DB
3+
description: Learn how to monitor the throughput or request unit usage of an operation in Azure Cosmos DB. Owners of an Azure Cosmos DB account can understand which operations are taking more Request units.
4+
ms.service: cosmos-db
5+
ms.topic: conceptual
6+
author: kanshiG
7+
ms.author: govindk
8+
ms.date: 04/09/2020
9+
---
10+
11+
# How to monitor throughput or request unit usage of an operation in Azure Cosmos DB
12+
13+
Azure Monitor for Azure Cosmos DB provides a metrics view to monitor your account and create dashboards. The Azure Cosmos DB metrics are collected by default, this feature does not require you to enable or configure anything explicitly. The **Total Request Units** metric is used to get the request units usage for different types of operations. Later you can analyze which operations used most of the throughput. By default, the throughput data is aggregated at one-minute interval. However, you can change the aggregation unit by changing the time granularity option.
14+
15+
There are two ways to analyze the request unit usage data:
16+
17+
* Within the given time interval which operations are taking more request units.
18+
* Which operations in general dominate your workload by consuming more request units.
19+
This analysis allows you to focus on operations such as insert, upsert and look at their indexing. You can find out if you are over/under indexing specific fields and modify the [indexing policy](index-policy.md#include-exclude-paths) to include or exclude the paths.
20+
21+
If you notice certain queries are taking more request units, you can take actions such as:
22+
23+
* Reconsider if you are requesting the right amount of data.
24+
* Modify the query to use index with filter clause.
25+
* Perform less expensive UDF function calls.
26+
* Define partition keys to minimize the fan out of query into different partitions.
27+
* You can also use the query metrics returned in the call response, the diagnostic log details and refer to [query performance tuning](sql-api-query-metrics.md) article to learn more about the query execution.
28+
* You can start from sum and then look at avg utilization using the right dimension.
29+
30+
## View the total request unit usage metric
31+
32+
1. Sign in to the [Azure portal](https://portal.azure.com/).
33+
34+
1. Select **Monitor** from the left-hand navigation bar and select **Metrics**.
35+
36+
![Metrics pane in Azure Monitor](./media/monitor-request-unit-usage/monitor-metrics-blade.png)
37+
38+
1. From the **Metrics** pane > **Select a resource** > choose the required **subscription**, and **resource group**. For the **Resource type**, select **Azure Cosmos DB accounts**, choose one of your existing Azure Cosmos accounts, and select **Apply**.
39+
40+
![Choose the Azure Cosmos DB account to view metrics](./media/monitor-request-unit-usage/select-cosmos-db-account.png)
41+
42+
1. Next select the **Total Request Units** metric from the list of available metrics. To learn in detail about all the available metrics in this list, see the [Metrics by category](monitor-cosmos-db-reference.md) article. In this example, let's select **Total Request Units** and **Avg** as the aggregation value. In addition to these details, you can also select the **Time range** and **Time granularity** of the metrics. At max, you can view metrics for the past 30 days. After you apply the filter, a chart is displayed based on your filter. You can see the average number of request units consumed per minute for the selected period.
43+
44+
![Choose a metric from the Azure portal](./media/monitor-request-unit-usage/request-unit-usage-metric.png)
45+
46+
## Filters for request unit usage
47+
48+
You can also filter metrics and get the charts displayed by a specific **CollectionName**, **DatabaseName**, **OperationType**, **Region**, **Status**, and **StatusCode**. The **Add filter** and **Apply splitting** options allows you to filter the request unit usage and group the metrics.
49+
50+
To get the request unit usage of each operation either by total(sum) or average, select **Apply splitting** and choose **Operation type** and the filter value as shown in the following image:
51+
52+
![Cosmos DB Request units for operations in Azure monitor](./media/monitor-request-unit-usage/request-unit-usage-operations.png)
53+
54+
If you want to see the request unit usage by collection, select **Apply splitting** and choose the collection name as a filter. You will see a chat like the following with a choice of collections within the dashboard. You can then select a specific collection name to view more details:
55+
56+
![Cosmos DB Request units for all operations by the collection in Azure monitor](./media/monitor-request-unit-usage/request-unit-usage-collection.png)
57+
58+
## Next steps
59+
60+
* Monitor Azure Cosmos DB data by using [diagnostic settings](cosmosdb-monitor-resource-logs.md) in Azure.
61+
* [Audit Azure Cosmos DB control plane operations](audit-control-plane-logs.md)

articles/cosmos-db/monitor-server-side-latency.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you see unusually large latency for point operations such as:
2020

2121
You can look up the diagnostic log to see the size of data returned. If you see a sustained high latency for query operations, you can look up the diagnostic log for size of data returned, [throughput or RU/s](cosmosdb-monitor-resource-logs.md#diagnostic-queries) used, or the number of such operations in a given period. This way, you can debug the server-side latency issues.
2222

23-
## View server-side latency metric
23+
## View the server-side latency metric
2424

2525
1. Sign in to the [Azure portal](https://portal.azure.com/).
2626

@@ -30,15 +30,15 @@ You can look up the diagnostic log to see the size of data returned. If you see
3030

3131
1. From the **Metrics** pane > **Select a resource** > choose the required **subscription**, and **resource group**. For the **Resource type**, select **Azure Cosmos DB accounts**, choose one of your existing Azure Cosmos accounts, and select **Apply**.
3232

33-
![Choose a Cosmos DB account to view metrics](./media/monitor-server-side-latency/select-cosmos-db-account.png)
33+
![Choose the Azure Cosmos DB account to view metrics](./media/monitor-server-side-latency/select-cosmos-db-account.png)
3434

35-
1. Next select the **Server Side Latency** metric from the list of available metrics. To learn in detail about all the available metrics in this list, see the [Metrics by category](monitor-cosmos-db-reference.md) article. In this example, let's select **Server Side Latency** and **Avg** as the aggregation value. In addition to these details, you can also select the **Time range** and **Time granularity** of the metrics. At max, you can view metrics for the past 30 days. After you apply the filter, a chart is displayed based on your filter. You can see the average number of request units consumed per minute for the selected period.
35+
1. Next select the **Server Side Latency** metric from the list of available metrics. To learn in detail about all the available metrics in this list, see the [Metrics by category](monitor-cosmos-db-reference.md) article. In this example, let's select **Server Side Latency** and **Avg** as the aggregation value. In addition to these details, you can also select the **Time range** and **Time granularity** of the metrics. At max, you can view metrics for the past 30 days. After you apply the filter, a chart is displayed based on your filter. You can see the server-side latency per minute for the selected period.
3636

3737
![Choose the Server-Side Latency metric from the Azure portal](./media/monitor-server-side-latency/server-side-latency-metric.png)
3838

3939
## Filters for server-side latency
4040

41-
You can also filter metrics and the chart displayed by a specific **CollectionName**, **ConnectionMode**, **DatabaseName**, **OperationType**, **Region**, and **PublicAPIType**.
41+
You can also filter metrics and get the charts displayed by a specific **CollectionName**, **ConnectionMode**, **DatabaseName**, **OperationType**, **Region**, and **PublicAPIType**.
4242

4343
To filter the metrics, select **Add filter** and choose the required property such as **PublicAPIType** and select the value **sql**. Add another filter for **OperationType**. The graph then displays the server-side latency for different operations during the selected period. The operations executed via Stored procedure are not logged so they are not available under the OperationType metric.
4444

@@ -50,5 +50,5 @@ You can also group the metrics by using the **Apply splitting** option.
5050

5151
## Next steps
5252

53-
* Monitor Azure Cosmos DB data by using [diagnostic settings](cosmosdb-monitor-resource-logs.md) in Azure
53+
* Monitor Azure Cosmos DB data by using [diagnostic settings](cosmosdb-monitor-resource-logs.md) in Azure.
5454
* [Audit Azure Cosmos DB control plane operations](audit-control-plane-logs.md)

0 commit comments

Comments
 (0)