Azure Functions App Insights MaxTelemetryItemsPerSecond

Fabian Trottmann 66 Reputation points

I want to reduce the number of logs, because app insight is getting expensive. For me, the most important logs are the logs I write when certain incidents happen. Therefore I want all my custom logs to be written, but I wanna get rid of the noise, which is written by app insight. How can I reduce the noise? It seems, that maxTelemetryItemsPerSeconds does not work, when using the following configuration: ![196254-image.png][1] I'm not sure if this config (if it would work) also affects my own logs (which are traces I guess)? [1]: /api/attachments/196254-image.png?platform=QnA

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,644 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,451 Reputation points

    anonymous user ,

    Thanks for reaching out to Q&A.

    You have already enabled sampling which would filter the telemetry data. maxTelemetryItemsPerSeconds would target number of telemetry items logged per second on each server host. If your app runs on many hosts, reduce this value to remain within your overall target rate of traffic. So you can revert back to the default setting of 20.

    You can try to set the "Function" to "Warning" and see if that makes a difference. You should still see your custom logs. Please try and let me know the outcome.

0 additional answers

Sort by: Most helpful