You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## <a id="GetLastRequestStatistics"></a>Get throughput by using MongoDB API's GetLastRequestStatistics command
226
+
## Get throughput by using MongoDB API portal metrics
227
+
228
+
ThesimplestwaytogetagoodestimateofrequestunitchargesforyourMongoDBAPIdatabaseistousethe [Azureportal](https://portal.azure.com) metrics. With the *Number of requests* and *Request Charge* charts, you can get an estimate of how many request units each operation is consuming and how many request units they consume relative to one another.
229
+
230
+
![MongoDBAPIportalmetrics][1]
231
+
232
+
### <a id="RequestRateTooLargeAPIforMongoDB"></a> Exceeding reserved throughput limits in the MongoDB API
233
+
Applicationsthatexceedtheprovisionedthroughputforacontainerorasetofcontainerswillberate-limiteduntiltheconsumptionratedropsbelowtheprovisionedthroughputrate. Whenarate-limitationoccurs, thebackendwillendtherequestwitha `16500` errorcode- `TooManyRequests`. Bydefault, theMongoDBAPIautomaticallyretriesupto10timesbeforereturninga `TooManyRequests` errorcode. Ifyouarereceivingmany `TooManyRequests` errorcodes, youmaywanttoconsidereitheraddingaretrylogicinyourapplication's error handling routines or [increase provisioned throughput for the container](set-throughput.md).
234
+
235
+
## <a id="GetLastRequestStatistics"></a>Get request charge by using MongoDB API's GetLastRequestStatistics command
@@ -251,14 +260,19 @@ One method for estimating the amount of reserved throughput required by your app
251
260
>
252
261
>
253
262
254
-
## Get throughput by using MongoDB API portal metrics
263
+
## <a id="RequestchargeGraphAPI"></a>Get request charge for Gremlin API accounts
255
264
256
-
ThesimplestwaytogetagoodestimateofrequestunitchargesforyourMongoDBAPIdatabaseistousethe[Azureportal](https://portal.azure.com) metrics. With the *Number of requests* and *Request Charge* charts, you can get an estimate of how many request units each operation is consuming and how many request units they consume relative to one another.
0 commit comments