Performance Counters and the .NET Machine Agent

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.

To configure additional performance counters for .Net

  1. Shut down the AppDynamics.Agent.Coordinator service.
  2. Edit the config.xml file as an administrator. See Where to Configure App Agent Properties.

  3. Add the Performance Counters block as a child of the Machine Agent element.

      <perf-counters>
        <perf-counter cat="" name="" instance=""/>
      </perf-counters>
  4. 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.

    (info) If a particular performance counter has many instances you can specify the following options:

    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"/>
  5. Save the config.xml.
  6. Start the AppDynamics.Agent.Coordinator service.

Sample .NET Machine Agent configuration with additional performance counters

<machine-agent>
  <!-- Additional machine level Performance Counters -->
  <perf-counters>
    <perf-counter cat="Processor" name="% Idle Time" instance="_Total"/>
  </perf-counters>
</machine-agent>