Skip to content

Perfomance Counters Collection: Setting collection frequency (2.x)

Trask Stalnaker edited this page Jan 20, 2021 · 1 revision

By default, the SDK will collect performance counter every minute.

You can customize the timeout between collection by using an attribute on the PerformanceCounters XML tag in the configuration file, ApplicationInsights.xml like this:

<PerformanceCounters collectionFrequencyInSec="15"> </PerformanceCounters>

In this example the collection frequency is set to every 15 seconds