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

Alex Schlee 1 Reputation point
2021-08-11T17:02:34.823+00:00

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
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,469 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,576 Reputation points
    2021-08-12T07:49:12.613+00:00

    Hi @Alex Schlee , 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'

    0 comments No comments