@@ -146,25 +146,25 @@ For detailed information about how to create a diagnostic setting by using the A
146
146
147
147
1 . How to get partition Key statistics to evaluate skew across top three partitions for database account?
148
148
149
- ``` Kusto
150
- AzureDiagnostics
151
- | where ResourceProvider=="MICROSOFT.DOCUMENTDB" and Category=="PartitionKeyStatistics"
152
- | project SubscriptionId, regionName_s, databaseName_s, collectionName_s, partitionKey_s, sizeKb_d, ResourceId
153
- ```
154
-
155
- 1. How to get P99s or P50 for operation latencies, request charge or the length of the respons ?
156
- ```Kusto
157
- AzureDiagnostics
158
- | where ResourceProvider=="MICROSOFT.DOCUMENTDB" and Category=="DataPlaneRequests"
159
- | where TimeGenerated >= ago(2d)
160
- | summarize
161
- percentile(todouble(responseLength_s), 50), percentile(todouble(responseLength_s), 99), max(responseLength_s),
162
- percentile(todouble(requestCharge_s ), 50), percentile(todouble(requestCharge_s ), 99), max(requestCharge_s ),
163
- percentile(todouble(duration_s ), 50), percentile(todouble(duration_s ), 99), max(duration_s ),
164
- count()
165
- by OperationName, requestResourceType_s, userAgent_s, collectionRid_s, bin(TimeGenerated, 1h )
166
- ```
167
-
149
+ ``` Kusto
150
+ AzureDiagnostics
151
+ | where ResourceProvider=="MICROSOFT.DOCUMENTDB" and Category=="PartitionKeyStatistics"
152
+ | project SubscriptionId, regionName_s, databaseName_s, collectionName_s, partitionKey_s, sizeKb_d, ResourceId
153
+ ```
154
+
155
+ 1 . How to get P99 or P50 replication latencies for operations , request charge or the length of the response ?
156
+
157
+ ``` Kusto
158
+ AzureDiagnostics
159
+ | where ResourceProvider=="MICROSOFT.DOCUMENTDB" and Category=="DataPlaneRequests"
160
+ | where TimeGenerated >= ago(2d)
161
+ | summarize
162
+ percentile(todouble(responseLength_s ), 50), percentile(todouble(responseLength_s ), 99), max(responseLength_s ),
163
+ percentile(todouble(requestCharge_s ), 50), percentile(todouble(requestCharge_s ), 99), max(requestCharge_s ),
164
+ percentile(todouble(duration_s), 50), percentile(todouble(duration_s), 99), max(duration_s),
165
+ count( )
166
+ by OperationName, requestResourceType_s, userAgent_s, collectionRid_s, bin(TimeGenerated, 1h)
167
+ ```
168
168
169
169
## Next steps
170
170
0 commit comments