azureazure-cosmosdb

How to look up logical partition count and size in Cosmos DB


In Cosmos DB, is it possible to see how many logical partitions my database has created and the current fill capacity of each partition? I'd like to know how evenly my partitioning strategy is dividing data. Also, I'd like to prepare for data re-distribution before I hit the 20GB limit on a hot partition.


Solution

  • Azure monitor for Cosmos DB. Check out the metrics.

    https://learn.microsoft.com/en-us/azure/cosmos-db/use-metrics