Machine Agent Metrics

By default, AppDynamics Machine Agent reports metrics for only network mounted and local disks. Also, only the external network traffic is aggregated (to ensure backward compatibility with previous versions of AppDynamics).

However, you can customize this default behavior by modifying the auto-generated configuration file, task-template.xml. The task-template.xml file provides information about the current configuration of the Machine Agent.

To customize default Machine Agent metric collection

Step 1: Open the task-template.xml file.

AppDynamics creates this file in the <machineAgent install directory>/monitors/JavaHardwareMonitor/ directory when the Machine Agent starts up for the first time.

Step 2: Modify the task-template.xml file.

A sample task-template.xml file is given below:

 

<config>
    <disk aggregate="false" enabled="false">sunrpc</disk>
    <disk aggregate="true" enabled="true">/dev/sdb1</disk>
    <disk aggregate="false" enabled="false">proc</disk>
    <disk aggregate="false" enabled="false">none</disk>
    <disk aggregate="false" enabled="false">devpts</disk>
    <disk aggregate="true" enabled="true">/dev/sda1</disk>
    <disk aggregate="false" enabled="false">nfsd</disk>
    <disk aggregate="true" enabled="true">/dev/mapper/saas4-binlog</disk>
    <disk aggregate="false" enabled="false">sysfs</disk>
    <disk aggregate="false" enabled="false">tmpfs</disk>

    <network aggregate="true" enabled="true">lo</network>
    <network aggregate="true" enabled="false">sit0</network>
    <network aggregate="true" enabled="true">eth0:1</network>
    <network aggregate="true" enabled="true">eth0</network>
    <network aggregate="true" enabled="false">eth1</network>
</config>

Step 3: Rename the task-template.xml file to task.xml.

Step 4: Restart the Machine Agent.

Restart the machine agent for the changes to take effect.