By default, the Machine Agent reports metrics for network-mounted and local disks only. Additionally to ensure backward compatibility with previous versions of AppDynamics, only the external network traffic is aggregated.
You can customize the default behavior by modifying the auto-generated configuration file,
task-template.xml file provides information about the current configuration of the Machine Agent and is created when you first start up the agent. It discovers the disks and network hardware on the machine where it is installed that the agent can monitor.
This configuration applies to the JavaHardwareMonitor extension only. The ServerMonitoring extension is recommended if you have a Server Visibility license and the monitored system meets the system requirements. See Server Visibility Requirements and Supported Environments
Customize the Default Machine Agent Metric Collection
- Locate the
This file is located in the
<machine_agent_home>/monitors/JavaHardwareMonitor/directory when the Machine Agent starts the first time.
- To enable aggregation operation for localhost (lo) network metrics, change the value of the aggregate attribute (for the network element "lo") to "true".
- To enable monitoring for a virtual disk, set the value of the enabled attribute to "true" for that disk.
The following is a sample
To prevent the Machine Agent from overwriting the file, rename the
To monitor a special device that is not enabled, add a file named
The format of the
task.xmlfile must be exactly the same format as the
Not all disks and networks must be included in the
task.xmlfile. If the Machine Agent finds a disk or a network that is not in the
task.xmlfile, then it applies the default properties.
Restart the Machine Agent.