|
1 | 1 | ---
|
2 | 2 | title: Monitoring data reference for Azure Cosmos DB
|
3 | 3 | description: This article contains important reference material you need when you monitor Azure Cosmos DB.
|
4 |
| -ms.date: 02/14/2024 |
| 4 | +ms.date: 02/24/2024 |
5 | 5 | ms.custom: horz-monitor
|
6 | 6 | ms.topic: reference
|
7 | 7 | ms.author: esarroyo
|
@@ -64,100 +64,94 @@ The following tables list Azure Cosmos DB metrics categorized by metric type.
|
64 | 64 |
|
65 | 65 | #### Request metrics
|
66 | 66 |
|
67 |
| -|Metric (Metric Display Name)|Unit (Aggregation Type) |Description|Dimensions| Time granularities| Legacy metric mapping | Usage | |
68 |
| -|---|---|---|---| ---| ---| ---| |
69 |
| -| TotalRequests (Total Requests) | Count (Count) | Number of requests made| DatabaseName, CollectionName, Region, StatusCode| All | TotalRequests, Http 2xx, Http 3xx, Http 400, Http 401, Internal Server error, Service Unavailable, Throttled Requests, Average Requests per Second | Used to monitor requests per status code, container at a minute granularity. To get average requests per second, use Count aggregation at minute and divide by 60. | |
70 |
| -| MetadataRequests (Metadata Requests) |Count (Count) | Count of Azure Resource Manager metadata requests. Metadata has request limits. See [Control Plane Limits](concepts-limits.md#control-plane) for more information. | DatabaseName, CollectionName, Region, StatusCode| All | | Used to monitor metadata requests in scenarios where requests are being throttled. See [Monitor Control Plane Requests](use-metrics.md#monitor-control-plane-requests) for more information. | |
71 |
| -| MongoRequests (Mongo Requests) | Count (Count) | Number of Mongo Requests Made | DatabaseName, CollectionName, Region, CommandName, ErrorCode| All |Mongo Query Request Rate, Mongo Update Request Rate, Mongo Delete Request Rate, Mongo Insert Request Rate, Mongo Count Request Rate| Used to monitor Mongo request errors, usages per command type. | |
| 67 | +- TotalRequests (Total Requests) |
| 68 | +- MetadataRequests (Metadata Requests) |
| 69 | +- MongoRequests (Mongo Requests) |
72 | 70 |
|
73 | 71 | #### Request Unit metrics
|
74 | 72 |
|
75 |
| -|Metric (Metric Display Name)|Unit (Aggregation Type)|Description|Dimensions| Time granularities| Legacy metric mapping | Usage | |
76 |
| -|---|---|---|---| ---| ---| ---| |
77 |
| -| MongoRequestCharge (Mongo Request Charge) | Count (Total) |Mongo Request Units Consumed| DatabaseName, CollectionName, Region, CommandName, ErrorCode| All |Mongo Query Request Charge, Mongo Update Request Charge, Mongo Delete Request Charge, Mongo Insert Request Charge, Mongo Count Request Charge| Used to monitor Mongo resource RUs in a minute.| |
78 |
| -| TotalRequestUnits (Total Request Units)| Count (Total) | Request Units consumed| DatabaseName, CollectionName, Region, StatusCode |All| TotalRequestUnits| Used to monitor Total RU usage at a minute granularity. To get average RU consumed per second, use Sum aggregation at minute interval/level and divide by 60.| |
79 |
| -| ProvisionedThroughput (Provisioned Throughput)| Count (Maximum) |Provisioned throughput at container granularity| DatabaseName, ContainerName| 5M| | Used to monitor provisioned throughput per container.| |
80 |
| -| AutoscaleMaxThroughput (Autoscale Max Throughput)| Count (Maximum) |Autoscale max throughput at container granularity| DatabaseName, ContainerName| 5M| | Used to monitor autoscale max throughput per container.| |
81 |
| -| PhysicalPartitionThroughputInfo (Physical Partition Throughput Info)| Count (Maximum) |Provisioned throughput at physical partition granularity| DatabaseName, ContainerName, PhysicalPartitionId, Region| 5M| | Used to monitor provisioned throughput per physical partition. If resource is autoscale, represents autoscale max RU/s per physical partition. To see provisioned throughput for all physical partitions, split by dimension Physical Partition Id.| |
| 73 | +- MongoRequestCharge (Mongo Request Charge) |
| 74 | +- TotalRequestUnits (Total Request Units) |
| 75 | +- ProvisionedThroughput (Provisioned Throughput) |
| 76 | +- AutoscaleMaxThroughput (Autoscale Max Throughput) |
| 77 | +- PhysicalPartitionThroughputInfo (Physical Partition Throughput Info) |
82 | 78 |
|
83 | 79 | #### Storage metrics
|
84 | 80 |
|
85 |
| -|Metric (Metric Display Name)|Unit (Aggregation Type)|Description|Dimensions| Time granularities| Legacy metric mapping | Usage | |
86 |
| -|---|---|---|---| ---| ---| ---| |
87 |
| -| AvailableStorage (Available Storage) |Bytes (Total) | Total available storage reported at 5-minutes granularity per region| DatabaseName, CollectionName, Region| 5M| Available Storage| Used to monitor available storage capacity (applicable only for fixed storage collections) Minimum granularity should be 5 minutes.| |
88 |
| -| DataUsage (Data Usage) |Bytes (Total) |Total data usage reported at 5-minutes granularity per region| DatabaseName, CollectionName, Region| 5M |Data size | Used to monitor total data usage at container and region, minimum granularity should be 5 minutes.| |
89 |
| -| IndexUsage (Index Usage) | Bytes (Total) |Total Index usage reported at 5-minutes granularity per region| DatabaseName, CollectionName, Region| 5M| Index Size| Used to monitor total data usage at container and region, minimum granularity should be 5 minutes. | |
90 |
| -| DocumentQuota (Document Quota) | Bytes (Total) | Total storage quota reported at 5-minutes granularity per region.| DatabaseName, CollectionName, Region| 5M |Storage Capacity| Used to monitor total quota at container and region, minimum granularity should be 5 minutes.| |
91 |
| -| DocumentCount (Document Count) | Count (Total) |Total document count reported at 5-minutes granularity per region| DatabaseName, CollectionName, Region| 5M |Document Count|Used to monitor document count at container and region, minimum granularity should be 5 minutes.| |
92 |
| -| PhysicalPartitionSizeInfo (Physical Partition Size Info) | Count (Maximum) | Storage at physical partition granularity| DatabaseName, ContainerName, PhysicalPartitionId, Region| 5M | |Used to monitor physical partition size (bytes) at physical partition granularity. To see storage for all physical partitions, split by dimension Physical Partition Id.| |
| 81 | +- AvailableStorage (Available Storage) |
| 82 | +- DataUsage (Data Usage) |
| 83 | +- IndexUsage (Index Usage) |
| 84 | +- DocumentQuota (Document Quota) |
| 85 | +- DocumentCount (Document Count) |
| 86 | +- PhysicalPartitionSizeInfo (Physical Partition Size Info) |
93 | 87 |
|
94 | 88 | #### Latency metrics
|
95 | 89 |
|
96 |
| -|Metric (Metric Display Name)|Unit (Aggregation Type)|Description|Dimensions| Time granularities| Usage | |
97 |
| -|---|---|---|---| ---| ---| |
98 |
| -| ReplicationLatency (Replication Latency)| MilliSeconds (Minimum, Maximum, Average) | P99 Replication Latency across source and target regions for geo-enabled account| SourceRegion, TargetRegion| All | Used to monitor P99 replication latency between any two regions for a geo-replicated account. | |
99 |
| -| Server Side Latency| MilliSeconds (Average) | Time taken by the server to process the request. | CollectionName, ConnectionMode, DatabaseName, OperationType, PublicAPIType, Region | All | Used to monitor the request latency on the Azure Cosmos DB server. | |
| 90 | +- ReplicationLatency (Replication Latency) |
| 91 | +- Server Side Latency |
100 | 92 |
|
101 | 93 | #### Availability metrics
|
102 | 94 |
|
103 |
| -|Metric (Metric Display Name) |Unit (Aggregation Type)|Description| Time granularities| Legacy metric mapping | Usage | |
104 |
| -|---|---|---|---| ---| ---| |
105 |
| -| ServiceAvailability (Service Availability)| Percent (Minimum, Maximum) | Account requests availability at one hour granularity| 1H | Service Availability | Represents the percent of total passed requests. A request is considered to be failed due to system error if the status code is 410, 500 or 503 Used to monitor availability of the account at hour granularity. | |
| 95 | +- ServiceAvailability (Service Availability) |
106 | 96 |
|
107 | 97 | #### API for Cassandra metrics
|
108 | 98 |
|
109 |
| -|Metric (Metric Display Name)|Unit (Aggregation Type)|Description|Dimensions| Time granularities| Usage | |
110 |
| -|---|---|---|---| ---| ---| |
111 |
| -| CassandraRequests (Cassandra Requests) | Count (Count) | Number of API for Cassandra requests made| DatabaseName, CollectionName, ErrorCode, Region, OperationType, ResourceType| All| Used to monitor Cassandra requests at a minute granularity. To get average requests per second, use Count aggregation at minute and divide by 60.| |
112 |
| -| 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.| |
113 |
| -| 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.| |
| 99 | +- CassandraRequests (Cassandra Requests) |
| 100 | +- CassandraRequestCharges (Cassandra Request Charges) |
| 101 | +- CassandraConnectionClosures (Cassandra Connection Closures) |
114 | 102 |
|
115 | 103 | <!-- ## Metric dimensions. Required section. -->
|
116 | 104 | [!INCLUDE [horz-monitor-ref-metrics-dimensions-intro](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions-intro.md)]
|
117 | 105 | <!-- Use one of the following includes, depending on whether you have metrics with dimensions.
|
118 | 106 | - 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]. -->
|
119 | 107 | [!INCLUDE [horz-monitor-ref-metrics-dimensions](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions.md)]
|
120 |
| -|Namespace|Dimension| |
121 |
| -|---------|---------| |
122 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ApiKind| |
123 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ApiKindResourceType| |
124 |
| -|Microsoft.DocumentDB/DatabaseAccounts|APIType| |
125 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ApplicationType| |
126 |
| -|Microsoft.DocumentDB/DatabaseAccounts|BuildType| |
127 |
| -|Microsoft.DocumentDB/DatabaseAccounts|CacheEntryType| |
128 |
| -|Microsoft.DocumentDB/DatabaseAccounts|CacheExercised| |
129 |
| -|Microsoft.DocumentDB/DatabaseAccounts|CacheHit| |
130 |
| -|Microsoft.DocumentDB/DatabaseAccounts|CapacityType| |
131 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ChildResourceName| |
132 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ClosureReason| |
133 |
| -|Microsoft.DocumentDB/DatabaseAccounts|CommandName| |
134 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ConnectionMode| |
135 |
| -|Microsoft.DocumentDB/DatabaseAccounts|DiagnosticSettingsName| |
136 |
| -|Microsoft.DocumentDB/DatabaseAccounts|Error| |
137 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ErrorCode| |
138 |
| -|Microsoft.DocumentDB/DatabaseAccounts|IsExternal| |
139 |
| -|Microsoft.DocumentDB/DatabaseAccounts|IsSharedThroughputOffer| |
140 |
| -|Microsoft.DocumentDB/DatabaseAccounts|IsThroughputRequest| |
141 |
| -|Microsoft.DocumentDB/DatabaseAccounts|KeyType| |
142 |
| -|Microsoft.DocumentDB/DatabaseAccounts|MetricType| |
143 |
| -|Microsoft.DocumentDB/DatabaseAccounts|NotStarted| |
144 |
| -|Microsoft.DocumentDB/DatabaseAccounts|OfferOwnerRid| |
145 |
| -|Microsoft.DocumentDB/DatabaseAccounts|PartitionKeyRangeId| |
146 |
| -|Microsoft.DocumentDB/DatabaseAccounts|PhysicalPartitionId| |
147 |
| -|Microsoft.DocumentDB/DatabaseAccounts|PhysicalPartitionId| |
148 |
| -|Microsoft.DocumentDB/DatabaseAccounts|PriorityLevel| |
149 |
| -|Microsoft.DocumentDB/DatabaseAccounts|PublicAPIType| |
150 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ReplicationInProgress| |
151 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ResourceGroupName| |
152 |
| -|Microsoft.DocumentDB/DatabaseAccounts|ResourceName| |
153 |
| -|Microsoft.DocumentDB/DatabaseAccounts|Role| |
154 |
| -|Microsoft.DocumentDB/DatabaseAccounts|SourceRegion| |
155 |
| -|Microsoft.DocumentDB/DatabaseAccounts|TargetContainerName| |
156 |
| -|Microsoft.DocumentDB/DatabaseAccounts|TargetRegion| |
157 |
| -|Microsoft.DocumentDB/cassandraClusters|cassandra_datacenter| |
158 |
| -|Microsoft.DocumentDB/cassandraClusters|cassandra_node| |
159 |
| -|Microsoft.DocumentDB/cassandraClusters|cache_name| |
160 |
| -|Microsoft.DocumentDB/mongoClusters|ServerName| |
| 108 | + |
| 109 | +### Microsoft.DocumentDB/DatabaseAccounts |
| 110 | + |
| 111 | +- ApiKindResourceType |
| 112 | +- APIType |
| 113 | +- ApplicationType |
| 114 | +- BuildType |
| 115 | +- CacheEntryType |
| 116 | +- CacheExercised |
| 117 | +- CacheHit |
| 118 | +- CapacityType |
| 119 | +- ChildResourceName |
| 120 | +- ClosureReason |
| 121 | +- CommandName |
| 122 | +- ConnectionMode |
| 123 | +- DiagnosticSettingsName |
| 124 | +- Error |
| 125 | +- ErrorCode |
| 126 | +- IsExternal |
| 127 | +- IsSharedThroughputOffer |
| 128 | +- IsThroughputRequest |
| 129 | +- KeyType |
| 130 | +- MetricType |
| 131 | +- NotStarted |
| 132 | +- OfferOwnerRid |
| 133 | +- PartitionKeyRangeId |
| 134 | +- PhysicalPartitionId |
| 135 | +- PhysicalPartitionId |
| 136 | +- PriorityLevel |
| 137 | +- PublicAPIType |
| 138 | +- ReplicationInProgress |
| 139 | +- ResourceGroupName |
| 140 | +- ResourceName |
| 141 | +- Role |
| 142 | +- SourceRegion |
| 143 | +- TargetContainerName |
| 144 | +- TargetRegion |
| 145 | + |
| 146 | +### Microsoft.DocumentDB/cassandraClusters |
| 147 | + |
| 148 | +- cassandra_datacenter |
| 149 | +- cassandra_node |
| 150 | +- cache_name |
| 151 | + |
| 152 | +### Microsoft.DocumentDB/mongoClusters |
| 153 | + |
| 154 | +- ServerName |
161 | 155 |
|
162 | 156 | <!-- ## Resource logs. Required section. -->
|
163 | 157 | [!INCLUDE [horz-monitor-ref-resource-logs](~/articles/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-resource-logs.md)]
|
|
0 commit comments