By default, the .NET Machine Agent uses Microsoft Performance Counters to gather and report .NET metrics. For details on the preconfigured .NET metrics see Monitor CLRs and Monitor IIS.
You can specify additional performance counters to be reported by the .NET Machine Agent.
Edit the config.xml file as an administrator. See Where to Configure App Agent Properties.
Add the Performance Counters block as a child of the Machine Agent element.
<perf-counters> <perf-counter cat="" name="" instance=""/> </perf-counters>
Create a Performance Counter element for each performance counter you want to add. Use any of the performance counters as specified in Performance Counters in .NET Framework.
If a particular performance counter has many instances you can specify the following options:
instance ="all" (This will report the sum of all instances)
For example, to add the performance counter for measuring CPU Idle time(%), add the following element in the <perf-counters> block:
<perf-counter cat="Processor" name="% Idle Time" instance="_Total"/>
<machine-agent> <!-- Additional machine level Performance Counters --> <perf-counters> <perf-counter cat="Processor" name="% Idle Time" instance="_Total"/> </perf-counters> </machine-agent>