@@ -38,27 +38,20 @@ Common queries are shown in the resource-specific and Azure Diagnostics tables.
38
38
39
39
# [ Resource-specific] ( #tab/resource-specific )
40
40
``` Kusto
41
- let topRequestsByRUcharge = CDBDataPlaneRequests
42
- | where TimeGenerated > ago(24h)
43
- | project RequestCharge , TimeGenerated, ActivityId;
41
+ //Enable full-text query to view entire query text
44
42
CDBMongoRequests
45
- | project PIICommandText, ActivityId, DatabaseName , CollectionName
46
- | join kind=inner topRequestsByRUcharge on ActivityId
47
- | project DatabaseName , CollectionName , PIICommandText , RequestCharge, TimeGenerated
43
+ | where TimeGenerated > ago(24h)
44
+ | project PIICommandText, ActivityId, DatabaseName , CollectionName, RequestCharge
48
45
| order by RequestCharge desc
49
46
| take 10
50
47
```
51
48
52
49
# [ Azure Diagnostics] ( #tab/azure-diagnostics )
53
50
``` Kusto
54
- let topRequestsByRUcharge = AzureDiagnostics
55
- | where Category == "DataPlaneRequests" and TimeGenerated > ago(1h)
56
- | project requestCharge_s , TimeGenerated, activityId_g;
57
51
AzureDiagnostics
58
52
| where Category == "MongoRequests"
59
- | project piiCommandText_s, activityId_g, databaseName_s , collectionName_s
60
- | join kind=inner topRequestsByRUcharge on activityId_g
61
- | project databaseName_s , collectionName_s , piiCommandText_s , requestCharge_s, TimeGenerated
53
+ | where TimeGenerated > ago(24h)
54
+ | project piiCommandText_s, activityId_g, databaseName_s , collectionName_s, requestCharge_s
62
55
| order by requestCharge_s desc
63
56
| take 10
64
57
```
@@ -68,25 +61,17 @@ Common queries are shown in the resource-specific and Azure Diagnostics tables.
68
61
69
62
# [ Resource-specific] ( #tab/resource-specific )
70
63
``` Kusto
71
- let throttledRequests = CDBDataPlaneRequests
72
- | where StatusCode == "429" or StatusCode == "16500"
73
- | project OperationName , TimeGenerated, ActivityId;
74
64
CDBMongoRequests
75
- | project PIICommandText, ActivityId, DatabaseName , CollectionName
76
- | join kind=inner throttledRequests on ActivityId
77
- | project DatabaseName , CollectionName , PIICommandText , OperationName, TimeGenerated
65
+ | where TimeGenerated > ago(24h)
66
+ | where ErrorCode == "429" or ErrorCode == "16500"
67
+ | project DatabaseName, CollectionName, PIICommandText, OperationName, TimeGenerated
78
68
```
79
69
80
70
# [ Azure Diagnostics] ( #tab/azure-diagnostics )
81
71
``` Kusto
82
- let throttledRequests = AzureDiagnostics
83
- | where Category == "DataPlaneRequests"
84
- | where statusCode_s == "429" or statusCode_s == "16500"
85
- | project OperationName , TimeGenerated, activityId_g;
86
72
AzureDiagnostics
87
- | where Category == "MongoRequests"
88
- | project piiCommandText_s, activityId_g, databaseName_s , collectionName_s
89
- | join kind=inner throttledRequests on activityId_g
73
+ | where Category == "MongoRequests" and TimeGenerated > ago(24h)
74
+ | where ErrorCode == "429" or ErrorCode == "16500"
90
75
| project databaseName_s , collectionName_s , piiCommandText_s , OperationName, TimeGenerated
91
76
```
92
77
---
@@ -95,24 +80,16 @@ Common queries are shown in the resource-specific and Azure Diagnostics tables.
95
80
96
81
# [ Resource-specific] ( #tab/resource-specific )
97
82
``` Kusto
98
- let throttledRequests = CDBDataPlaneRequests
99
- | where StatusCode == "50"
100
- | project OperationName , TimeGenerated, ActivityId;
101
83
CDBMongoRequests
102
- | project PIICommandText, ActivityId, DatabaseName , CollectionName
103
- | join kind=inner throttledRequests on ActivityId
104
- | project DatabaseName , CollectionName , PIICommandText , OperationName, TimeGenerated
84
+ | where TimeGenerated > ago(24h)
85
+ | where ErrorCode == "50"
86
+ | project DatabaseName, CollectionName, PIICommandText, OperationName, TimeGenerated
105
87
```
106
88
# [ Azure Diagnostics] ( #tab/azure-diagnostics )
107
89
``` Kusto
108
- let throttledRequests = AzureDiagnostics
109
- | where Category == "DataPlaneRequests"
110
- | where statusCode_s == "50"
111
- | project OperationName , TimeGenerated, activityId_g;
112
90
AzureDiagnostics
113
- | where Category == "MongoRequests"
114
- | project piiCommandText_s, activityId_g, databaseName_s , collectionName_s
115
- | join kind=inner throttledRequests on activityId_g
91
+ | where Category == "MongoRequests" and TimeGenerated > ago(24h)
92
+ | where ErrorCode == "50"
116
93
| project databaseName_s , collectionName_s , piiCommandText_s , OperationName, TimeGenerated
117
94
```
118
95
---
@@ -121,27 +98,20 @@ Common queries are shown in the resource-specific and Azure Diagnostics tables.
121
98
122
99
# [ Resource-specific] ( #tab/resource-specific )
123
100
``` Kusto
124
- let operationsbyUserAgent = CDBDataPlaneRequests
125
- | project OperationName, DurationMs, RequestCharge, ResponseLength, ActivityId;
126
101
CDBMongoRequests
127
102
//specify collection and database
128
103
//| where DatabaseName == "DBNAME" and CollectionName == "COLLECTIONNAME"
129
- | join kind=inner operationsbyUserAgent on ActivityId
130
- | summarize max(ResponseLength) by PIICommandText
104
+ | summarize max(ResponseLength) by PIICommandText, RequestCharge, DurationMs, OperationName, TimeGenerated
131
105
| order by max_ResponseLength desc
132
106
```
133
107
# [ Azure Diagnostics] ( #tab/azure-diagnostics )
134
108
``` Kusto
135
- let operationsbyUserAgent = AzureDiagnostics
136
- | where Category=="DataPlaneRequests"
137
- | project OperationName, duration_s, requestCharge_s, responseLength_s, activityId_g;
138
109
AzureDiagnostics
139
110
| where Category == "MongoRequests"
140
111
//specify collection and database
141
112
//| where databaseName_s == "DBNAME" and collectionName_s == "COLLECTIONNAME"
142
- | join kind=inner operationsbyUserAgent on activityId_g
143
- | summarize max(responseLength_s1) by piiCommandText_s
144
- | order by max_responseLength_s1 desc
113
+ | summarize max(responseLength_s) by piiCommandText_s, OperationName, duration_s, requestCharge_s
114
+ | order by max_responseLength_s desc
145
115
```
146
116
---
147
117
0 commit comments