public class OperatingSystemMetricSet extends Object implements com.codahale.metrics.MetricSet, OperatingSystemStatus
| Constructor and Description |
|---|
OperatingSystemMetricSet() |
| Modifier and Type | Method and Description |
|---|---|
com.codahale.metrics.Gauge<Integer> |
getAvailableLogicalProcessorsGauge()
Retrieves the number of logical processors as observed by the JVM.
|
com.codahale.metrics.Gauge<Long> |
getCommittedVirtualMemorySizeInBytesGauge()
Retrieves the amount of virtual memory that is guaranteed to be available to the running process in bytes.
|
com.codahale.metrics.Gauge<Long> |
getFreeDiskSpaceInBytesGauge()
Retrieves the free disk space in bytes for the root path ("/").
|
com.codahale.metrics.Gauge<Long> |
getFreePhysicalMemorySizeInBytesGauge()
Retrieves the amount of free physical memory in bytes.
|
com.codahale.metrics.Gauge<Long> |
getFreeSwapSpaceSizeInBytesGauge()
Retrieves the amount of free swap space in bytes.
|
com.codahale.metrics.Gauge<Double> |
getIoWaitPercentageGauge()
Retrieves a recent UNIX iowait (percentage of CPU blocked for IO) value as reported in the output for the iostat
command.
|
com.codahale.metrics.Gauge<Double> |
getJvmCpuBusyPercentageGauge()
Retrieves the recent CPU usage for the JVM process.
|
com.codahale.metrics.Gauge<Long> |
getMaxFileDescriptorsGauge()
Retrieves the maximum number of file descriptors.
|
Map<String,com.codahale.metrics.Metric> |
getMetrics() |
List<NetworkInterfaceStatus> |
getNetworkInterfaceStatuses()
Retrieves a list of network interface statuses.
|
com.codahale.metrics.Gauge<Long> |
getOpenFileDescriptorsGauge()
Retrieves the number of open file descriptors.
|
com.codahale.metrics.Gauge<Double> |
getSystemCpuBusyPercentageGauge()
Retrieves the recent CPU usage for the whole system.
|
com.codahale.metrics.Gauge<Double> |
getSystemLoadAverageGauge()
Retrieves the UNIX system load average for the past minute.
|
com.codahale.metrics.Gauge<Double> |
getSystemLoadAveragePerLogicalProcessorGauge()
Retrieves the UNIX system load average for the past minute divided by the number of logical processors.
|
com.codahale.metrics.Gauge<Long> |
getTotalDiskSpaceInBytesGauge()
Retrieves the total disk space in bytes for the root path ("/").
|
com.codahale.metrics.Gauge<Long> |
getTotalPhysicalMemorySizeInBytesGauge()
Retrieves the total amount of physical memory in bytes.
|
com.codahale.metrics.Gauge<Long> |
getTotalSwapSpaceSizeInBytesGauge()
Retrieves the total amount of swap space in bytes.
|
com.codahale.metrics.Gauge<Double> |
getUsedDiskSpacePercentageGauge()
Retrieves the percentage of used disk space for the root path ("/").
|
com.codahale.metrics.Gauge<Double> |
getUsedFileDescriptorsPercentageGauge()
Retrieves the percentage of used file descriptors.
|
com.codahale.metrics.Gauge<Double> |
getUsedPhysicalMemoryPercentageGauge()
Retrieves the percentage of used physical memory.
|
com.codahale.metrics.Gauge<Double> |
getUsedSwapSpacePercentageGauge()
Retrieves the percentage of used swap space.
|
void |
shutdown() |
public Map<String,com.codahale.metrics.Metric> getMetrics()
getMetrics in interface com.codahale.metrics.MetricSetpublic com.codahale.metrics.Gauge<Integer> getAvailableLogicalProcessorsGauge()
OperatingSystemStatusgetAvailableLogicalProcessorsGauge in interface OperatingSystemStatusOperatingSystemMXBean.getAvailableProcessors()public com.codahale.metrics.Gauge<Double> getSystemLoadAverageGauge()
OperatingSystemStatusgetSystemLoadAverageGauge in interface OperatingSystemStatusOperatingSystemMXBean.getSystemLoadAverage()public com.codahale.metrics.Gauge<Double> getSystemLoadAveragePerLogicalProcessorGauge()
OperatingSystemStatusgetSystemLoadAveragePerLogicalProcessorGauge in interface OperatingSystemStatuspublic com.codahale.metrics.Gauge<Double> getJvmCpuBusyPercentageGauge()
OperatingSystemStatusgetJvmCpuBusyPercentageGauge in interface OperatingSystemStatusOperatingSystemMXBean.getProcessCpuLoad()public com.codahale.metrics.Gauge<Double> getSystemCpuBusyPercentageGauge()
OperatingSystemStatusgetSystemCpuBusyPercentageGauge in interface OperatingSystemStatusOperatingSystemMXBean.getSystemCpuLoad()public com.codahale.metrics.Gauge<Long> getCommittedVirtualMemorySizeInBytesGauge()
OperatingSystemStatusgetCommittedVirtualMemorySizeInBytesGauge in interface OperatingSystemStatusOperatingSystemMXBean.getCommittedVirtualMemorySize()public com.codahale.metrics.Gauge<Long> getTotalPhysicalMemorySizeInBytesGauge()
OperatingSystemStatusgetTotalPhysicalMemorySizeInBytesGauge in interface OperatingSystemStatusOperatingSystemMXBean.getTotalPhysicalMemorySize()public com.codahale.metrics.Gauge<Long> getFreePhysicalMemorySizeInBytesGauge()
OperatingSystemStatusgetFreePhysicalMemorySizeInBytesGauge in interface OperatingSystemStatusOperatingSystemMXBean.getFreePhysicalMemorySize()public com.codahale.metrics.Gauge<Double> getUsedPhysicalMemoryPercentageGauge()
OperatingSystemStatusgetUsedPhysicalMemoryPercentageGauge in interface OperatingSystemStatuspublic com.codahale.metrics.Gauge<Long> getTotalSwapSpaceSizeInBytesGauge()
OperatingSystemStatusgetTotalSwapSpaceSizeInBytesGauge in interface OperatingSystemStatusOperatingSystemMXBean.getTotalSwapSpaceSize()public com.codahale.metrics.Gauge<Long> getFreeSwapSpaceSizeInBytesGauge()
OperatingSystemStatusgetFreeSwapSpaceSizeInBytesGauge in interface OperatingSystemStatusOperatingSystemMXBean.getFreeSwapSpaceSize()public com.codahale.metrics.Gauge<Double> getUsedSwapSpacePercentageGauge()
OperatingSystemStatusgetUsedSwapSpacePercentageGauge in interface OperatingSystemStatuspublic com.codahale.metrics.Gauge<Long> getMaxFileDescriptorsGauge()
OperatingSystemStatusgetMaxFileDescriptorsGauge in interface OperatingSystemStatusUnixOperatingSystemMXBean.getMaxFileDescriptorCount()public com.codahale.metrics.Gauge<Long> getOpenFileDescriptorsGauge()
OperatingSystemStatusgetOpenFileDescriptorsGauge in interface OperatingSystemStatusUnixOperatingSystemMXBean.getOpenFileDescriptorCount()public com.codahale.metrics.Gauge<Double> getUsedFileDescriptorsPercentageGauge()
OperatingSystemStatusgetUsedFileDescriptorsPercentageGauge in interface OperatingSystemStatuspublic com.codahale.metrics.Gauge<Long> getTotalDiskSpaceInBytesGauge()
OperatingSystemStatusgetTotalDiskSpaceInBytesGauge in interface OperatingSystemStatusFile.getTotalSpace()public com.codahale.metrics.Gauge<Long> getFreeDiskSpaceInBytesGauge()
OperatingSystemStatusgetFreeDiskSpaceInBytesGauge in interface OperatingSystemStatus()public com.codahale.metrics.Gauge<Double> getUsedDiskSpacePercentageGauge()
OperatingSystemStatusgetUsedDiskSpacePercentageGauge in interface OperatingSystemStatuspublic com.codahale.metrics.Gauge<Double> getIoWaitPercentageGauge()
OperatingSystemStatusgetIoWaitPercentageGauge in interface OperatingSystemStatuspublic List<NetworkInterfaceStatus> getNetworkInterfaceStatuses()
OperatingSystemStatusgetNetworkInterfaceStatuses in interface OperatingSystemStatuspublic void shutdown()
Copyright © 2016–2019. All rights reserved.