Supported metrics for Microsoft.DocumentDB/DatabaseAccounts
The following table lists the metrics available for the Microsoft.DocumentDB/DatabaseAccounts resource type.
Table headings
Metric - The metric display name as it appears in the Azure portal.
Name in Rest API - Metric name as referred to in the REST API.
Unit - Unit of measure.
Aggregation - The default aggregation type. Valid values: Average, Minimum, Maximum, Total, Count.
Dimensions - Dimensions available for the metric.
Time Grains - Intervals at which the metric is sampled. For example, PT1M
indicates that the metric is sampled every minute, PT30M
every 30 minutes, PT1H
every hour, and so on.
DS Export- Whether the metric is exportable to Azure Monitor Logs via Diagnostic Settings.
For information on exporting metrics, see - Metrics export using data collection rules and Create diagnostic settings in Azure Monitor.
For information on metric retention, see Azure Monitor Metrics overview.
For a list of supported logs, see Supported log categories - Microsoft.DocumentDB/DatabaseAccounts
Category: Requests
Metric | Name in REST API | Unit | Aggregation | Dimensions | Time Grains | DS Export |
---|---|---|---|---|---|---|
Region Added Region Added |
AddRegion |
Count | Count | Region |
PT5M | No |
Autoscaled RU Autoscaled RU consumption with Per Region and Per Partition Autoscale |
AutoscaledRU |
Count | Maximum | DatabaseName , CollectionName , PhysicalPartitionId , Region |
PT1M, PT5M, PT1H, P1D | No |
Autoscale Max Throughput Autoscale Max Throughput |
AutoscaleMaxThroughput |
Count | Maximum | DatabaseName , CollectionName |
PT5M, PT1H | No |
(deprecated) Available Storage "Available Storage"will be removed from Azure Monitor at the end of September 2023. Cosmos DB collection storage size is now unlimited. The only restriction is that the storage size for each logical partition key is 20GB. You can enable PartitionKeyStatistics in Diagnostic Log to know the storage consumption for top partition keys. For more info about Cosmos DB storage quota, please check this doc /azure/cosmos-db/concepts-limits. After deprecation, the remaining alert rules still defined on the deprecated metric will be automatically disabled post the deprecation date. |
AvailableStorage |
Bytes | Total (Sum), Average | CollectionName , DatabaseName , Region |
PT5M | No |
Backup Mode Update Backup Mode Update |
BackupModeUpdate |
Count | Count | BackupMode |
PT5M | No |
Periodic Backup Policy Interval Update Periodic Backup Policy Interval Update. Valid range: 60 -1440 minutes. |
BackupPolicyIntervalUpdate |
Count | Count | BackupIntervalInHours |
PT5M | No |
Periodic Backup Policy Redundancy Update Periodic Backup Policy Redundancy Update |
BackupPolicyRedundancyUpdate |
Count | Count | BackupRedundancy |
PT5M | No |
Periodic Backup Policy Retention Update Periodic Backup Policy Retention Update. Valid range: 8 - 720 hours. |
BackupPolicyRetentionUpdate |
Count | Count | BackupRetentionIntervalInHours |
PT5M | No |
Periodic Backup Policy Update Periodic Backup Policy Update |
BackupPolicyUpdate |
Count | Count | BackupPolicy |
PT5M | No |
Cassandra Connection Closures Number of Cassandra connections that were closed, reported at a 1 minute granularity |
CassandraConnectionClosures |
Count | Average, Minimum, Maximum, Total (Sum) | APIType , Region , ClosureReason |
PT1M | No |
Cassandra Connector Average ReplicationLatency Cassandra Connector Average ReplicationLatency |
CassandraConnectorAvgReplicationLatency |
MilliSeconds | Average | <none> | PT5M | No |
Cassandra Connector Replication Health Status Cassandra Connector Replication Health Status |
CassandraConnectorReplicationHealthStatus |
Count | Count | NotStarted , ReplicationInProgress , Error |
PT5M | No |
Cassandra Keyspace Created Cassandra Keyspace Created |
CassandraKeyspaceCreate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Cassandra Keyspace Deleted Cassandra Keyspace Deleted |
CassandraKeyspaceDelete |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Cassandra Keyspace Throughput Updated Cassandra Keyspace Throughput Updated |
CassandraKeyspaceThroughputUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
Cassandra Keyspace Updated Cassandra Keyspace Updated |
CassandraKeyspaceUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Cassandra Request Charges RUs consumed for Cassandra requests made |
CassandraRequestCharges |
Count | Total (Sum), Average, Minimum, Maximum | APIType , DatabaseName , CollectionName , Region , OperationType , ResourceType |
PT1M | No |
Cassandra Requests Number of Cassandra requests made |
CassandraRequests |
Count | Count | APIType , DatabaseName , CollectionName , Region , OperationType , ResourceType , ErrorCode |
PT1M | No |
Cassandra Table Created Cassandra Table Created |
CassandraTableCreate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Cassandra Table Deleted Cassandra Table Deleted |
CassandraTableDelete |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Cassandra Table Throughput Updated Cassandra Table Throughput Updated |
CassandraTableThroughputUpdate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
Cassandra Table Updated Cassandra Table Updated |
CassandraTableUpdate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
ContinuousBackupMode Tier Update ContinuousBackupMode Tier Update |
ContinuousTierUpdate |
Count | Count | ContinuousBackupTier |
PT5M | No |
Account Created Account Created |
CreateAccount |
Count | Count | <none> | PT5M | No |
Data Usage Total data usage reported at 5 minutes granularity |
DataUsage |
Bytes | Total (Sum), Average, Maximum, Minimum | CollectionName , DatabaseName , Region |
PT5M, PT15M, PT30M, PT1H | No |
DedicatedGatewayAverageCPUUsage Average CPU usage across dedicated gateway instances |
DedicatedGatewayAverageCPUUsage |
Percent | Average | Region , MetricType |
PT5M | No |
DedicatedGatewayAverageMemoryUsage Average memory usage across dedicated gateway instances, which is used for both routing requests and caching data |
DedicatedGatewayAverageMemoryUsage |
Bytes | Average | Region |
PT5M | No |
DedicatedGatewayCPUUsage CPU usage across dedicated gateway instances |
DedicatedGatewayCPUUsage |
Percent | Average, Maximum, Minimum | Region , ApplicationType |
PT1M | No |
DedicatedGatewayMaximumCPUUsage Average Maximum CPU usage across dedicated gateway instances |
DedicatedGatewayMaximumCPUUsage |
Percent | Average, Maximum | Region , MetricType |
PT5M | No |
DedicatedGatewayMemoryUsage Memory usage across dedicated gateway instances |
DedicatedGatewayMemoryUsage |
Bytes | Average, Maximum, Minimum | Region , ApplicationType |
PT1M | No |
DedicatedGatewayRequests Requests at the dedicated gateway |
DedicatedGatewayRequests |
Count | Count | DatabaseName , CollectionName , CacheExercised , OperationName , Region , CacheHit |
PT1M | No |
Account Deleted Account Deleted |
DeleteAccount |
Count | Count | <none> | PT5M | No |
Document Count Total document count reported at 5 minutes, 1 hour and 1 day granularity |
DocumentCount |
Count | Total (Sum), Average | CollectionName , DatabaseName , Region |
PT5M, PT1H, P1D | No |
Document Quota Total storage quota reported at 5 minutes granularity |
DocumentQuota |
Bytes | Total (Sum), Average | CollectionName , DatabaseName , Region |
PT5M | No |
Gremlin Database Created Gremlin Database Created |
GremlinDatabaseCreate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Gremlin Database Deleted Gremlin Database Deleted |
GremlinDatabaseDelete |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Gremlin Database Throughput Updated Gremlin Database Throughput Updated |
GremlinDatabaseThroughputUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
Gremlin Database Updated Gremlin Database Updated |
GremlinDatabaseUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Gremlin Graph Created Gremlin Graph Created |
GremlinGraphCreate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Gremlin Graph Deleted Gremlin Graph Deleted |
GremlinGraphDelete |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Gremlin Graph Throughput Updated Gremlin Graph Throughput Updated |
GremlinGraphThroughputUpdate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
Gremlin Graph Updated Gremlin Graph Updated |
GremlinGraphUpdate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Gremlin Request Charges Request Units consumed for Gremlin requests made |
GremlinRequestCharges |
Count | Total (Sum), Average, Minimum, Maximum | APIType , DatabaseName , CollectionName , Region |
PT1M | No |
Gremlin Requests Number of Gremlin requests made |
GremlinRequests |
Count | Count | APIType , DatabaseName , CollectionName , Region , ErrorCode |
PT1M | No |
Index Usage Total index usage reported at 5 minutes granularity |
IndexUsage |
Bytes | Total (Sum), Average, Maximum, Minimum | CollectionName , DatabaseName , Region |
PT5M, PT15M, PT30M, PT1H | No |
IntegratedCacheEvictedEntriesSize Size of the entries evicted from the integrated cache |
IntegratedCacheEvictedEntriesSize |
Bytes | Average | Region |
PT5M | No |
IntegratedCacheItemExpirationCount Number of items evicted from the integrated cache due to TTL expiration |
IntegratedCacheItemExpirationCount |
Count | Average | Region , CacheEntryType |
PT5M | No |
IntegratedCacheItemHitRate Number of point reads that used the integrated cache divided by number of point reads routed through the dedicated gateway with eventual consistency |
IntegratedCacheItemHitRate |
Percent | Average | Region , CacheEntryType |
PT5M | No |
IntegratedCacheQueryExpirationCount Number of queries evicted from the integrated cache due to TTL expiration |
IntegratedCacheQueryExpirationCount |
Count | Average | Region , CacheEntryType |
PT5M | No |
IntegratedCacheQueryHitRate Number of queries that used the integrated cache divided by number of queries routed through the dedicated gateway with eventual consistency |
IntegratedCacheQueryHitRate |
Percent | Average | Region , CacheEntryType |
PT5M | No |
Materialized View Catchup Gap In Minutes Maximum time difference in minutes between data in source container and data propagated to materialized view |
MaterializedViewCatchupGapInMinutes |
Count | Maximum | Region , TargetContainerName , BuildType |
PT1M | No |
Materialized Views Builder Average CPU Usage Average CPU usage across materialized view builder instances, which are used for populating data in materialized views |
MaterializedViewsBuilderAverageCPUUsage |
Percent | Average | Region , MetricType |
PT5M | No |
Materialized Views Builder Average Memory Usage Average memory usage across materialized view builder instances, which are used for populating data in materialized views |
MaterializedViewsBuilderAverageMemoryUsage |
Bytes | Average | Region |
PT5M | No |
Materialized Views Builder Maximum CPU Usage Average Maximum CPU usage across materialized view builder instances, which are used for populating data in materialized views |
MaterializedViewsBuilderMaximumCPUUsage |
Percent | Average, Maximum | Region , MetricType |
PT5M | No |
Metadata Requests Count of metadata requests. Cosmos DB maintains system metadata collection for each account, that allows you to enumerate collections, databases, etc, and their configurations, free of charge. |
MetadataRequests |
Count | Count | DatabaseName , CollectionName , Region , StatusCode , Role |
PT1M | No |
Mongo Collection Created Mongo Collection Created |
MongoCollectionCreate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Mongo Collection Deleted Mongo Collection Deleted |
MongoCollectionDelete |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Mongo Collection Throughput Updated Mongo Collection Throughput Updated |
MongoCollectionThroughputUpdate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
Mongo Collection Updated Mongo Collection Updated |
MongoCollectionUpdate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Mongo Database Deleted Mongo Database Deleted |
MongoDatabaseDelete |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Mongo Database Throughput Updated Mongo Database Throughput Updated |
MongoDatabaseThroughputUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
Mongo Database Created Mongo Database Created |
MongoDBDatabaseCreate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Mongo Database Updated Mongo Database Updated |
MongoDBDatabaseUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Mongo Request Charge Mongo Request Units Consumed |
MongoRequestCharge |
Count | Total (Sum), Average, Maximum | DatabaseName , CollectionName , Region , CommandName , ErrorCode , Status |
PT1M | No |
Mongo Requests Number of Mongo Requests Made |
MongoRequests |
Count | Count | DatabaseName , CollectionName , Region , CommandName , ErrorCode , Status |
PT1M | No |
Normalized RU Consumption Max RU consumption percentage per minute |
NormalizedRUConsumption |
Percent | Maximum, Average | CollectionName , DatabaseName , Region , PartitionKeyRangeId , CollectionRid , PhysicalPartitionId , OfferOwnerRid |
PT1M, PT5M, PT1H, P1D | No |
Region Offlined Region Offlined |
OfflineRegion |
Count | Count | Region , StatusCode , Role , OperationName |
PT1M | No |
Region Onlined Region Onlined |
OnlineRegion |
Count | Count | Region , StatusCode , Role , OperationName |
PT1M | No |
Physical Partition Count Physical Partition Count |
PhysicalPartitionCount |
Count | Maximum | CollectionName , DatabaseName , IsSharedThroughputOffer , OfferOwnerRid , Region |
PT5M | No |
Physical Partition Size Physical Partition Size in bytes |
PhysicalPartitionSizeInfo |
Bytes | Maximum, Average | CollectionName , DatabaseName , PhysicalPartitionId , OfferOwnerRid , Region |
PT1M, PT5M, PT1H, P1D | No |
Physical Partition Throughput Physical Partition Throughput |
PhysicalPartitionThroughputInfo |
Count | Maximum | CollectionName , DatabaseName , PhysicalPartitionId , OfferOwnerRid , Region |
PT5M, PT1H, P1D | No |
Provisioned Throughput Provisioned Throughput |
ProvisionedThroughput |
Count | Maximum | DatabaseName , CollectionName , Region |
PT5M, PT1H, P1D | No |
Region Failed Over Region Failed Over |
RegionFailover |
Count | Count | <none> | PT5M | No |
Region Removed Region Removed |
RemoveRegion |
Count | Count | Region |
PT5M | No |
P99 Replication Latency P99 Replication Latency across source and target regions for geo-enabled account |
ReplicationLatency |
MilliSeconds | Minimum, Maximum, Average | SourceRegion , TargetRegion |
PT1M | No |
(deprecated) Server Side Latency "Server Side Latency" will be removed from Azure Monitor at the end of August 2025. Please use "Server Side Latency Direct" and "Server Side Latency Gateway" to monitor the latency instead. For more info about latency metrics, please refer to this /azure/cosmos-db/monitor-server-side-latency. |
ServerSideLatency |
MilliSeconds | Average, Minimum, Maximum, Total (Sum) | DatabaseName , CollectionName , Region , ConnectionMode , OperationType , PublicAPIType |
PT1M, PT5M, PT1H, P1D | No |
Server Side Latency Direct Server Side Latency in Direct Connection Mode |
ServerSideLatencyDirect |
MilliSeconds | Average, Minimum, Maximum, Total (Sum) | DatabaseName , CollectionName , Region , ConnectionMode , OperationType , PublicAPIType , APIType , IsExternal |
PT1M, PT5M, PT1H, P1D | No |
Server Side Latency Gateway Server Side Latency in Gateway Connection Mode |
ServerSideLatencyGateway |
MilliSeconds | Average, Minimum, Maximum, Total (Sum) | DatabaseName , CollectionName , Region , ConnectionMode , OperationType , PublicAPIType , APIType , IsExternal |
PT1M, PT5M, PT1H, P1D | No |
Service Availability Account requests availability at one hour, day or month granularity |
ServiceAvailability |
Percent | Minimum, Average, Maximum | IsExternal |
PT1H | No |
Sql Container Created Sql Container Created |
SqlContainerCreate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Sql Container Deleted Sql Container Deleted |
SqlContainerDelete |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Sql Container Throughput Updated Sql Container Throughput Updated |
SqlContainerThroughputUpdate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
Sql Container Updated Sql Container Updated |
SqlContainerUpdate |
Count | Count | ResourceName , ChildResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Sql Database Created Sql Database Created |
SqlDatabaseCreate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Sql Database Deleted Sql Database Deleted |
SqlDatabaseDelete |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
Sql Database Throughput Updated Sql Database Throughput Updated |
SqlDatabaseThroughputUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
Sql Database Updated Sql Database Updated |
SqlDatabaseUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
AzureTable Table Created AzureTable Table Created |
TableTableCreate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
AzureTable Table Deleted AzureTable Table Deleted |
TableTableDelete |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , OperationType |
PT5M | No |
AzureTable Table Throughput Updated AzureTable Table Throughput Updated |
TableTableThroughputUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest |
PT5M | No |
AzureTable Table Updated AzureTable Table Updated |
TableTableUpdate |
Count | Count | ResourceName , ApiKind , ApiKindResourceType , IsThroughputRequest , OperationType |
PT5M | No |
Total Requests Number of requests made |
TotalRequests |
Count | Count | DatabaseName , CollectionName , Region , StatusCode , OperationType , Status , CapacityType , PriorityLevel , ConnectionMode , IsExternal |
PT1M | No |
Total Requests (Preview) Number of SQL requests |
TotalRequestsPreview |
Count | Count | DatabaseName , CollectionName , Region , StatusCode , OperationType , Status , PriorityLevel , IsExternal |
PT1M | No |
Total Request Units SQL Request Units consumed |
TotalRequestUnits |
Count | Total (Sum), Average, Maximum | DatabaseName , CollectionName , Region , StatusCode , OperationType , Status , CapacityType , PriorityLevel |
PT1M | No |
Total Request Units (Preview) Request Units consumed with CapacityType |
TotalRequestUnitsPreview |
Count | Total (Sum), Average, Maximum | DatabaseName , CollectionName , Region , StatusCode , OperationType , Status , CapacityType , PriorityLevel |
PT1M | No |
Account Keys Updated Account Keys Updated |
UpdateAccountKeys |
Count | Count | KeyType |
PT5M | No |
Account Network Settings Updated Account Network Settings Updated |
UpdateAccountNetworkSettings |
Count | Count | <none> | PT5M | No |
Account Replication Settings Updated Account Replication Settings Updated |
UpdateAccountReplicationSettings |
Count | Count | <none> | PT5M | No |
Account Diagnostic Settings Updated Account Diagnostic Settings Updated |
UpdateDiagnosticsSettings |
Count | Count | DiagnosticSettingsName , ResourceGroupName |
PT5M | No |