Below is the total requests metric of various ‘operationtype’ against a particular cosmosdb collection.
-
What does particularly "Execute" and "Readfeed" operation type mean?
-
Below metrics does not cover the operations performed via stored procs as mentioned here, so how to get total read/write operation metrics performed via stored procs?
2
Answers
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.
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
It executes user-defined functions or JavaScript stored procedures.
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.