public class SystemMonitor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static <any> |
DEFAULT_MEMINFO_KEYS
The default keys instrumented for memory information.
|
static KeyFilter |
DEFAULT_STORAGE_TYPES
The filesystem storage types instrumented by default.
|
| Constructor and Description |
|---|
SystemMonitor(int pollFrequencySeconds)
Creates a system monitor with default values.
|
SystemMonitor(int pollFrequencySeconds,
java.util.Collection<java.lang.String> meminfoKeys,
KeyFilter storageTypeFilter,
KeyFilter networkDeviceFilter,
Logger logger)
Creates a system monitor.
|
SystemMonitor(int pollFrequencySeconds,
Logger logger)
Creates a system monitor with default values.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,Metric> |
getMetrics() |
void |
shutdown()
Shutdown the monitor.
|
public static final <any> DEFAULT_MEMINFO_KEYS
public static final KeyFilter DEFAULT_STORAGE_TYPES
public SystemMonitor(int pollFrequencySeconds)
pollFrequencySeconds - The poll frequency in seconds.public SystemMonitor(int pollFrequencySeconds,
Logger logger)
pollFrequencySeconds - The poll frequency in seconds.logger - A logger. May be null.public SystemMonitor(int pollFrequencySeconds,
java.util.Collection<java.lang.String> meminfoKeys,
KeyFilter storageTypeFilter,
KeyFilter networkDeviceFilter,
Logger logger)
pollFrequencySeconds - The poll frequency in seconds.meminfoKeys - The instrumented keys for memory info.storageTypeFilter - Filters only instrumented storage types.networkDeviceFilter - Filters only instrumented network devices.logger - A logger. May be null.