0 Perfomance Counters Collection: Plugin (2.x)
Trask Stalnaker редактировал(а) эту страницу 2021-01-20 13:46:30 -08:00

Performance Counters Collection is done periodically (by default every minute)

You can be notified before and after the collection is done by implementing the _PerformanceCountersCollectionPlugin _interface (You can check SamplePCPlugin example in 'samples')

You will need to implement the 'preCollection' and 'postCollection' methods.

Then you will need to configure that in the ApplicationInsights.xml under the PerformanceCounters tag. Example:

<PerformanceCounters>

<Plugin>com.microsoft.applicationinsights.sample.SamplePCPlugin</Plugin>

</PerformanceCounters>