简体   繁体   English

使用Azure Cosmos DB无法查看READ的统计信息以及WRITE和ALL的统计信息错误

[英]Unable to view stats for READ and Wrong stats for WRITE and ALL with Azure Cosmos DB

I have questions regarding the graph below for Cosmos DB throughput: 我对以下Cosmos DB吞吐量的图表有疑问:

URE Q1 How to view statistics for READ, not write? Q1如何查看统计信息的读取,而不是写入? I cannot select for READ. 我无法选择读取。

Q2: The graph above shows ALL, or Write, whose statistics are exactly the same. Q2:上图显示ALL或Write,其统计数据完全相同。 Why do ALL and WRITE have the same graph? 为什么ALL和WRITE具有相同的图形?

You seem to have a single region account. 您似乎只有一个地区帐户。 In a single region account with Multi Master not enabled, one region acts as the Write region (where your write requests go), and other regions act as Read replicas. 在未启用“ 多主服务器”的单个区域帐户中,一个区域充当“写入”区域(您的写请求所在的位置),而其他区域充当“只读”副本。

The dropdown you show has 2 subsections, Write (for Write regions) and Read (for Read regions), since you only have one region, you see no items within Read and your "All" selection will always match the single Write region. 您显示的下拉列表有2个子部分,即Write(对于Write区域)和Read(对于Read区域),由于您只有一个区域,因此您在Read中看不到任何项目,并且您的“ All”选择将始终与单个Write区域匹配。

You can gain some additional details with diagnostic logging which you can look into here: 您可以通过诊断日志获得一些其他详细信息,可以在这里进行研究:

https://docs.microsoft.com/en-us/azure/cosmos-db/logging https://docs.microsoft.com/en-us/azure/cosmos-db/logging

You can also do somethings through the CosmosDB SDK: 您还可以通过CosmosDB SDK进行操作:

https://h-savran.blogspot.com/2019/01/cosmos-db-query-execution-metrics.html https://h-savran.blogspot.com/2019/01/cosmos-db-query-execution-metrics.html

Since CosmosDB does not charge based on writes but instead based upon "request units" so I don't believe they provide a specific metric for inserts. 由于CosmosDB不基于写入而是基于“请求单位”收费,因此我不认为它们为插入提供了特定的指标。

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

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