1
votes

I have an Azure Function App that is currently running and processing ~4k queries an hour. The application insight monitor is set to the default configuration of when it was automatically created.

I want to use application insights to track only the operation count per API call. All the other telemetry and log data is mostly unnecessary and driving up the cost to use. How can I configure my function app so that I can track only how many calls is made per HTTP method?

1
Hello, if the answer if helpful, could you please accept it as answer? Thanks.Ivan Yang

1 Answers

0
votes

In Application insights, there is no way to directly to track only how many calls is made per HTTP method. You must track the Request Telemetry data, then use kusto query to do that.

Here are some ways to reduce the data:

1.Use sampling, please refer to this and this article.

2.Add a Startup.cs to the azure function, then use filtering.

Another way I can think of to track only how many calls is made per HTTP method, is that you can go to the metrics of azure function, and see if there is a related metrics/filter combination which can generate the result.