# This is the monitoring configuration for HBase 0.98 and later running in standalone mode
# (all services on the same port).
# Look for HBASE_HOST and HBASE_PORT to adjust your configuration file.
LoadPlugin java
JVMARG "-Djava.class.path=/opt/stackdriver/collectd/share/collectd/java/collectd-api.jar:/opt/stackdriver/collectd/share/collectd/java/generic-jmx.jar"
LoadPlugin "org.collectd.java.GenericJMX"
ObjectName "Hadoop:service=HBase,name=Master,sub=Server"
Type "gauge"
InstancePrefix "master-averageLoad"
Table false
Attribute "averageLoad"
Type "gauge"
InstancePrefix "master-numRegionServers"
Table false
Attribute "numRegionServers"
Type "gauge"
InstancePrefix "master-numDeadRegionServers"
Table false
Attribute "numDeadRegionServers"
ObjectName "Hadoop:service=HBase,name=IPC,sub=IPC"
Type "counter"
InstancePrefix "ipc-sentBytes"
Table false
Attribute "sentBytes"
Type "counter"
InstancePrefix "ipc-receivedBytes"
Table false
Attribute "receivedBytes"
Type "gauge"
InstancePrefix "ipc-queueSize"
Table false
Attribute "queueSize"
Type "gauge"
InstancePrefix "ipc-numOpenConnections"
Table false
Attribute "numOpenConnections"
ObjectName "Hadoop:service=HBase,name=RegionServer,sub=Server"
Type "gauge"
InstancePrefix "regionserver-blockCacheCount"
Table false
Attribute "blockCacheCount"
Type "counter"
InstancePrefix "regionserver-blockCacheEvictedCount"
Table false
Attribute "blockCacheEvictionCount"
Type "gauge"
InstancePrefix "regionserver-blockCacheFreeSize"
Table false
Attribute "blockCacheFreeSize"
Type "counter"
InstancePrefix "regionserver-blockCacheHitCount"
Table false
Attribute "blockCacheHitCount"
# The two attributes below are identical; one is a renamed version of the other.
Type "gauge"
InstancePrefix "regionserver-blockCacheHitPercent"
Table false
# This is the name used in HBase 0.98 and earlier.
Attribute "blockCountHitPercent"
Type "gauge"
InstancePrefix "regionserver-blockCacheHitPercent"
Table false
Attribute "blockCacheCountHitPercent"
Type "counter"
InstancePrefix "regionserver-blockCacheMissCount"
Table false
Attribute "blockCacheMissCount"
Type "gauge"
InstancePrefix "regionserver-blockCacheSize"
Table false
Attribute "blockCacheSize"
Type "gauge"
InstancePrefix "regionserver-compactionQueueLength"
Table false
Attribute "compactionQueueLength"
Type "gauge"
InstancePrefix "regionserver-flushQueueLength"
Table false
Attribute "flushQueueLength"
Type "gauge"
InstancePrefix "regionserver-memStoreSize"
Table false
Attribute "memStoreSize"
Type "gauge"
InstancePrefix "regionserver-storeCount"
Table false
Attribute "storeCount"
Type "counter"
InstancePrefix "regionserver-readRequestCount"
Table false
Attribute "readRequestCount"
Type "gauge"
InstancePrefix "regionserver-storeFileIndexSize"
Table false
Attribute "storeFileIndexSize"
Type "counter"
InstancePrefix "regionserver-writeRequestCount"
Table false
Attribute "writeRequestCount"
Type "counter"
InstancePrefix "regionserver-totalRequestCount"
Table false
Attribute "totalRequestCount"
Type "counter"
InstancePrefix "regionserver-slowAppendCount"
Table false
Attribute "slowAppendCount"
Type "counter"
InstancePrefix "regionserver-slowPutCount"
Table false
Attribute "slowPutCount"
Type "counter"
InstancePrefix "regionserver-slowGetCount"
Table false
Attribute "slowGetCount"
# When using non-standard HBase configurations, replace the below with
#ServiceURL "service:jmx:rmi:///jndi/rmi://HBASE_HOST:HBASE_PORT/jmxrmi"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:10101/jmxrmi"
InstancePrefix "hbasemaster"
Collect "hbase_master_Server"
Collect "hbase_ipc_IPC"
# When using non-standard HBase configurations, replace the below with
#ServiceURL "service:jmx:rmi:///jndi/rmi://HBASE_HOST:HBASE_PORT/jmxrmi"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:10101/jmxrmi"
InstancePrefix "hbaseregionserver"
Collect "hbase_regionserver_RegionServerStatistics"
ObjectName "java.lang:type=Threading"
Type "gauge"
InstancePrefix "threading-daemon_thread_count"
Table false
Attribute "DaemonThreadCount"
Type "gauge"
InstancePrefix "threading-thread_count"
Table false
Attribute "ThreadCount"
Type "gauge"
InstancePrefix "threading-peak_thread_count"
Table false
Attribute "PeakThreadCount"
ObjectName "java.lang:type=Memory"
Type "memory"
InstancePrefix "memory-heap_usage_committed"
Table false
Attribute "HeapMemoryUsage.committed"
Type "memory"
InstancePrefix "memory-non_heap_usage_committed"
Table false
Attribute "NonHeapMemoryUsage.committed"
Type "memory"
InstancePrefix "memory-heap_usage_used"
Table false
Attribute "HeapMemoryUsage.used"
Type "memory"
InstancePrefix "memory-non_heap_usage_used"
Table false
Attribute "NonHeapMemoryUsage.used"
Type "memory"
InstancePrefix "memory-heap_usage_max"
Table false
Attribute "HeapMemoryUsage.max"
Type "memory"
InstancePrefix "memory-non_heap_usage_max"
Table false
Attribute "NonHeapMemoryUsage.max"
ObjectName "java.lang:type=Runtime"
Type "counter"
InstancePrefix "runtime-uptime"
Table false
Attribute "Uptime"
ObjectName "java.lang:type=OperatingSystem"
Type "gauge"
InstancePrefix "os-open_fd_count"
Table false
Attribute "OpenFileDescriptorCount"
Type "counter"
InstancePrefix "os-process_cpu_time"
Table false
Attribute "ProcessCpuTime"
ObjectName "java.lang:type=GarbageCollector,name=*"
InstanceFrom "name"
Type "counter"
InstancePrefix "gc-collection_count"
Table false
Attribute "CollectionCount"
Type "counter"
InstancePrefix "gc-collection_time"
Table false
Attribute "CollectionTime"
# When using non-standard HBase configurations, replace the below with
#ServiceURL "service:jmx:rmi:///jndi/rmi://HBASE_HOST:HBASE_PORT/jmxrmi"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:10101/jmxrmi"
InstancePrefix "jvm"
Collect "jvm_localhost_Threading"
Collect "jvm_localhost_Memory"
Collect "jvm_localhost_Runtime"
Collect "jvm_localhost_os"
Collect "jvm_localhost_gc"
LoadPlugin match_regex
LoadPlugin target_set
LoadPlugin target_replace
Plugin "^GenericJMX$"
PluginInstance "^hbase.*$"
PluginInstance "hbase" ""
Plugin "hbase"
Target "return"
Chain "GenericJMX_hbase"
PreCacheChain "PreCache"
Plugin "^GenericJMX$"
PluginInstance "^jvm.*$"
PluginInstance "jvm" ""
Plugin "jvm"
Target "return"
Chain "GenericJMX_jvm"
PreCacheChain "PreCache"