-
Notifications
You must be signed in to change notification settings - Fork 201
Perfomance Counters Collection: Plugin (2.x)
Trask Stalnaker edited this page Jan 20, 2021
·
1 revision
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>