简体   繁体   English

获取Cosmos DB集合中每个逻辑分区的大小

[英]Get size of each logical partition in Cosmos DB collection

Is there any way or metrics that can use on azure portal, to get the list of all logical partitions with their assigned and available size details. 在Azure门户上是否可以使用任何方法或指标来获取所有逻辑分区及其分配的大小和可用大小的详细信息的列表。 I can see only couple of partitions out of 100 logical partitions in Storage section available in metrics. 在指标的“存储”部分中,我只能看到100个逻辑分区中的几个分区。

As you mentioned in your question,azure portal metrics only shows the top few partitions in a collection. 正如您在问题中提到的那样,azure门户指标仅显示集合中的前几个分区。

I found Collection Partition - List Usages REST API which may meet your requirements. 我发现了集合分区-列表用法REST API ,它可能满足您的要求。

You could view some metrics based on the PartitionUsage object 您可以基于PartitionUsage对象查看一些指标

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM