question

AlexSchlee-3469 avatar image
0 Votes"
AlexSchlee-3469 asked AnuragSharma-MSFT commented

CosmosDB has constant requests, how do I determine what is causing this?

Hello everyone,

I setup a Cosmos Document DB that has an Azure function associated with it but only on a document create event for a specific collection. The function doesn't appear to be running but for some reason I am seeing constant, and relatively high requests being recorded by the DB (something like 1k per hour). Is there a good way to diagnose what is causing this constant usage?

Thanks!

azure-cosmos-db
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AlexSchlee-3469 , just wanted to check if you need further details on the same. If answer helped, you can mark it 'Accept Answer'

0 Votes 0 ·

1 Answer

AnuragSharma-MSFT avatar image
0 Votes"
AnuragSharma-MSFT answered

Hi @AlexSchlee-3469, welcome to Microsoft Q&A forum.

Through Dianogstic settings we can check kind of requests that come to Azure Cosmos and through which source. We can configure the log analytics diagnostic setting and then query them as mentioned in the below article:

Monitor Azure Cosmos DB

Below is the log analytics queries we can run and check the operations, time generated, client ip, request charges etc. This can give us greater insights on why their are high requests.

122595-image.png

Please let me know if this helps or we can discuss further.


If answer helps, you can mark it 'Accept Answer'





image.png (150.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.