Java Hardware Monitor
The JavaHardwareMonitor is based on SIGAR (System Information Gatherer And Reporter). SIGAR is a legacy method of collecting basic hardware metrics and is used in pre-4.1 versions and for machines running operating systems that are not supported by the ServerMonitoring extension. The following sections list scenarios where you might want to change the extension used to collect the machine metrics.
Customize Metrics for Virtual Disks and External Network Traffic
By default, the Machine Agent reports metrics for network-mounted and local disks only. Additionally, only the external network traffic is aggregated (to ensure backward compatibility with previous versions of Splunk AppDynamics). For operating systems using the ServerMonitoring extension, you can change to the JavaHardwareMonitor to configure specific disks and network interfaces to be monitored. See Configure Metrics for Virtual Disks and External Network Traffic - JavaHardwareMonitor Extension Only to customize the behavior of the JavaHardwareMonitor metrics
Metric Observation Rate
The JavaHardwareMonitor takes observations of metrics in two distinct ways:
- For disk and network metrics: One observation per minute. When you view the count for these metrics in the Metric Browser, you see the count of 1 per minute. If you select a 15-minute interval, the count would be 15 times 1 = 15 and so on.
- For CPU and memory metrics: One observation every two seconds. When you view the count for these metrics, you see the count of 30 per minute. If you select a 15-minute interval, the count would be 15 times 30 = 450 and so on.
Collect Basic Metrics Using JavaHardwareMonitor
Linux and Windows machines use the ServerMonitoring extension by default to report basic metrics. However if you have Server Visibility enabled, falling back to the JavaHardwareMonitor only affects the collection of the basic hardware metrics. The extended Server Visibility metrics are still collected correctly by the ServerMonitoring extension.
How to Change from ServerMonitoring to JavaHardwareMonitor
- Stop the Machine Agent.
- Disable basic ServerMonitoring:
- Edit the
ServerMonitoring.yml
file from<machine_agent_home>/extensions/ServerMonitoring/conf/
. - Change the value of
basicEnabled
to "false
". ThebasicEnabled
setting controls whether the Machine Agent reports basic hardware metrics through the ServerMonitoring extension. Setting this tofalse
enables the JavaHardwareMonitor to report the basic hardware metrics using the legacy SIGAR-based reporting. - Save the file.
- Edit the
- Enable JavaHardwareMonitor:
- Edit
monitor.xml
from<machine_agent_home>/monitors/JavaHardwareMonitor/
.- For Linux, remove this line:
<enable-override os-type="linux">false</enable-override>
. - For Windows, remove this line:
<enable-override os-type="windows">false</enable-override>
.
- For Linux, remove this line:
- Save the file.
- Edit
- Restart the Machine Agent.