Pushing custom metrics details to Application Insights Analytics
At times, businesses may ask developers to provide analytics reports for a derived metric within Application Insights. So, what is a derived metric? Well, by default, Application Insights provides us with many insights into metrics, such as requests, errors, and exceptions.
We can run queries on the information that Application Insights provides using its Analytics Query Language.
In this context, requests per hour
is a derived metric, and to build a new report within Application Insights, we need to feed Application Insights data regarding the newly derived metric on a regular basis. Once the required data is fed regularly, Application Insights will take care of providing reports for our analysis.
We'll be using Azure Functions to feed Application Insights with a derived metric named requests per hour
: