Query per la tabella VCoreMongoRequests
Per informazioni sull'uso di queste query nella portale di Azure, vedere Esercitazione su Log Analytics. Per l'API REST, vedere Query.
Mongo vCore richiede durata P99 per operazione
Mongo vCore richiede la durata del runtime P99 in base al nome dell'operazione.
VCoreMongoRequests
// Time range filter: | where TimeGenerated between (StartTime .. EndTime)
// Resource id filter: | where _ResourceId == "/subscriptions/22223333-cccc-4444-dddd-5555eeee6666/resourcegroups/my-resource-group-name/providers/microsoft.documentdb/mongoclusters/my-cluster-name"
| summarize percentile(DurationMs, 99) by bin(TimeGenerated, 1h), OperationName
Richieste vCore mongo in contenitori per durata
Numero di richieste vCore Mongo binned by total runtime duration (Numero di richieste vCore Mongo binned by total runtime duration).
VCoreMongoRequests
// Time range filter: | where TimeGenerated between (StartTime .. EndTime)
// Resource id filter: | where _ResourceId == "/subscriptions/22223333-cccc-4444-dddd-5555eeee6666/resourcegroups/my-resource-group-name/providers/microsoft.documentdb/mongoclusters/my-cluster-name"
| project TimeGenerated, DurationBin=tostring(bin(DurationMs, 5))
| summarize count() by bin(TimeGenerated, 1m), tostring(DurationBin)
Richieste vCore mongo non riuscite
Numero di richieste vCore Mongo non riuscite in base al codice di errore.
VCoreMongoRequests
// Time range filter: | where TimeGenerated between (StartTime .. EndTime)
// Resource id filter: | where _ResourceId == "/subscriptions/22223333-cccc-4444-dddd-5555eeee6666/resourcegroups/my-resource-group-name/providers/microsoft.documentdb/mongoclusters/my-cluster-name"
| where ErrorCode != 0
| summarize count() by bin(TimeGenerated, 5m), ErrorCode=tostring(ErrorCode)
Richieste vCore mongo da parte dell'agente utente
Numero di richieste vCore mongo da parte dell'agente utente.
VCoreMongoRequests
// Time range filter: | where TimeGenerated between (StartTime .. EndTime)
// Resource id filter: | where _ResourceId == "/subscriptions/22223333-cccc-4444-dddd-5555eeee6666/resourcegroups/my-resource-group-name/providers/microsoft.documentdb/mongoclusters/my-cluster-name"
| summarize count() by bin(TimeGenerated, 1h), UserAgent