Skip to content

Commit 50c46da

Browse files
committed
Fixing query
1 parent 94d3ed6 commit 50c46da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

articles/cosmos-db/monitor-cosmos-db.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ When you create a diagnostic setting, you specify which categories of logs to co
6969
{ "time": "2019-10-11T02:33:24.2018744Z", "resourceId": "/SUBSCRIPTIONS/<your_subscription_ID>/RESOURCEGROUPS/<your_resource_group>/PROVIDERS/MICROSOFT.DOCUMENTDB/DATABASEACCOUNTS/<your_database_account>", "category": "PartitionKeyStatistics", "properties": {"subscriptionId": "<your_subscription_ID>","regionName": "West US 2","databaseName": "KustoQueryResults","collectionname": "CapacityMetrics","partitionkey": "["CapacityMetricsPartition.136"]","sizeKb": "2048270"}}
7070
```
7171
72+
* **PartitionKeyRUConsumption**:
73+
74+
* **ControlPlaceRequests**:
75+
7276
* **Metric Requests**: Select this option to collect metric data from Azure Cosmos DB to the destinations in the diagnostic setting. This is the same data collected automatically in Azure Metrics. Collect metric data with resource logs to analyze both kinds of data together and to send metric data outside of Azure Monitor.
7377
7478
## Analyzing metric data
@@ -178,6 +182,7 @@ Following are queries that you can use to help you monitor your Azure Cosmos dat
178182
AzureDiagnostics
179183
| where ResourceProvider=="MICROSOFT.DOCUMENTDB" and Category=="DataPlaneRequests"
180184
| project TimeGenerated , duration_s
185+
| summarize count() by bin(TimeGenerated, 5s)
181186
| render timechart
182187
```
183188

0 commit comments

Comments
 (0)