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
This article provides a reference of log and metric data collected to analyze the performance and availability of Azure Cosmos DB. See the [Monitor Azure Cosmos DB](monitor.md) article for details on collecting and analyzing monitoring data for Azure Cosmos DB.
17
-
18
-
## Metrics
19
-
20
-
All the metrics corresponding to Azure Cosmos DB are stored in the namespace **Azure Cosmos DB standard metrics**. For a list of all Azure Monitor support metrics (including Azure Cosmos DB), see [Azure Monitor supported metrics](../azure-monitor/essentials/metrics-supported.md). This section lists all the automatically collected platform metrics collected for Azure Cosmos DB.
12
+
<!--
13
+
IMPORTANT
14
+
To make this template easier to use, first:
15
+
1. Search and replace Azure Cosmos DB with the official name of your service.
16
+
2. Search and replace [TODO-replace-with-service-filename] with the service name to use in GitHub filenames.-->
17
+
18
+
<!-- VERSION 3.0 2024_01_01
19
+
For background about this template, see https://review.learn.microsoft.com/en-us/help/contribute/contribute-monitoring?branch=main -->
20
+
21
+
<!-- Most services can use the following sections unchanged. All headings are required unless otherwise noted.
22
+
The sections use #included text you don't have to maintain, which changes when Azure Monitor functionality changes. Add info into the designated service-specific places if necessary. Remove #includes or template content that aren't relevant to your service.
23
+
At a minimum your service should have the following two articles:
24
+
1. The primary monitoring article (based on the template monitor-service-template.md)
25
+
- Title: "Monitor Azure Cosmos DB"
26
+
- TOC title: "Monitor"
27
+
- Filename: "monitor.md"
28
+
2. A reference article that lists all the metrics and logs for your service (based on this template).
29
+
- Title: "Azure Cosmos DB monitoring data reference"
For a list of all Azure Monitor supported metrics, including Azure Cosmos DB, see [Azure Monitor supported metrics](/azure/azure-monitor/essentials/metrics-supported).
44
+
45
+
<!-- Repeat the following section for each resource type/namespace in your service. -->
46
+
### Supported metrics for Microsoft.DocumentDB/DatabaseAccounts
47
+
The following table lists the metrics available for the Microsoft.DocumentDB/DatabaseAccounts resource type.
@@ -69,11 +108,52 @@ All the metrics corresponding to Azure Cosmos DB are stored in the namespace **A
69
108
| CassandraRequestCharges (Cassandra Request Charges) | Count (Sum, Min, Max, Avg) | Request units consumed by the API for Cassandra | DatabaseName, CollectionName, Region, OperationType, ResourceType| All| Used to monitor RUs used per minute by a API for Cassandra account.|
70
109
| CassandraConnectionClosures (Cassandra Connection Closures) |Count (Count) |Number of Cassandra Connections closed| ClosureReason, Region| All | Used to monitor the connectivity between clients and the Azure Cosmos DB API for Cassandra.|
71
110
72
-
For more information, see a list of [all platform metrics supported in Azure Monitor](../azure-monitor/essentials/metrics-supported.md).
<!-- Use one of the following includes, depending on whether you have metrics with dimensions.
114
+
- If you have metrics with dimensions, use the following include and list the metrics with dimensions after the include. For an example, see https://learn.microsoft.com/azure/storage/common/monitor-storage-reference#metrics-dimensions. Questions: email [email protected]. -->
<!-- Add at least one resource provider/resource type here. Repeat this section for each resource type/namespace in your service. Example: ### Supported resource logs for Microsoft.Storage/storageAccounts/blobServices -->
126
+
### Supported resource logs for Microsoft.DocumentDB/DatabaseAccounts
The following table lists the properties of resource logs in Azure Cosmos DB. The resource logs are collected into Azure Monitor Logs or Azure Storage. In Azure Monitor, logs are collected in the **AzureDiagnostics** table under the resource provider** name of `MICROSOFT.DOCUMENTDB`.
129
+
### Supported resource logs for Microsoft.DocumentDB/cassandraClusters
Logs are collected in the **AzureDiagnostics** table under the resource provider name of `MICROSOFT.DOCUMENTDB`.
153
+
154
+
## Azure CosmosDB resource logs properties
155
+
156
+
The following table lists the properties of resource logs in Azure Cosmos DB. The resource logs are collected into Azure Monitor Logs or Azure Storage.
77
157
78
158
| Azure Storage field or property | Azure Monitor Logs property | Description |
79
159
| --- | --- | --- |
@@ -98,13 +178,15 @@ The following table lists the properties of resource logs in Azure Cosmos DB. Th
98
178
|**resourceTokenUserRid**|**resourceTokenUserRid_s**| This value is non-empty when [resource tokens](./secure-access-to-data.md#resource-tokens) are used for authentication. The value points to the resource ID of the user. |
99
179
|**responseLength**|**responseLength_s**| The length of the response, in bytes.|
100
180
101
-
For a list of all Azure Monitor log categories and links to associated schemas, see [Azure Monitor Logs categories and schemas](../azure-monitor/essentials/resource-logs-schema.md).
Azure Cosmos DB uses Kusto tables from Azure Monitor Logs. You can query these tables with Log analytics. For a list of Kusto tables Azure Cosmos DB uses, see the [Azure Monitor Logs table reference](/azure/azure-monitor/reference/tables/tables-resourcetype#azure-cosmos-db) article.
185
+
<!-- ## Other schemas. Optional section. Please keep heading in this order. If your service uses other schemas, add the following include and information.
List other schemas and their usage here. These can be resource logs, alerts, event hub formats, etc. depending on what you think is important. You can put JSON messages, API responses not listed in the REST API docs, and other similar types of info here. -->
106
188
107
-
## See Also
189
+
## Related content
108
190
109
-
- See [Monitoring Azure Cosmos DB](monitor.md) for a description of monitoring Azure Cosmos DB.
110
-
- See [Monitoring Azure resources with Azure Monitor](../azure-monitor/essentials/monitor-azure-resource.md) for details on monitoring Azure resources.
191
+
- See [Monitor Azure Cosmos DB](monitor.md) for a description of monitoring Azure Cosmos DB.
192
+
- See [Monitor Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for details on monitoring Azure resources.
0 commit comments