Home > Software design >  Azure Cosmos db monitoring metrics
Azure Cosmos db monitoring metrics

Time:01-16

Below is the total requests metric of various 'operationtype' against a particular cosmosdb collection.

  1. What does particularly "Execute" and "Readfeed" operation type mean?

  2. Below metrics does not cover the operations performed via stored procs as mentioned enter image description here

    CodePudding user response:

    Execute operation type refers to the Execution of Stored Procedures.

    Readfeed operation is to retrieve all documents, or just the incremental changes to documents within the collection.

    As mentioned in the documentation, currently metrics does not capture the operations performed via the SP. You might need to log it somewhere manually.

    CodePudding user response:

      What does particularly "Execute" and "Readfeed" operation type mean?
    

    Refer this ReadFeed Microsoft documentation.

    • Read Feed can be used to retrieve all documents i.e., refers to read the entire feed of a container

      Execute  operation type.
      
    • It executes user-defined functions or JavaScript stored procedures. enter image description here enter image description here

    You can also Refer this thread for Read vs Read Feeds Vs Query.

    AFAIK you can capture metrics using application insights or you can use context object provided by cosmos DB and in your stored procedures, use the SDK to track custom events and metrics.

  • Related