# This is the monitoring configuration for HBase 0.95 and earlier. # Look for HBASE_HOST and HBASE_REGIONSERVER_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=RegionServer,name=RegionServerStatistics" # The three attributes below are identical; they are renamed versions of each other. Type "gauge" InstancePrefix "regionserver-blockCacheHitPercent" Table false # This may be a name that was never used. Attribute "blockCacheExpressCachingRatio" Type "gauge" InstancePrefix "regionserver-blockCacheHitPercent" Table false # This is the name used in HBase 0.94 and earlier. Attribute "blockCacheHitCachingRatio" Type "gauge" InstancePrefix "regionserver-blockCacheHitPercent" Table false Attribute "blockCountHitPercent" Type "gauge" InstancePrefix "regionserver-callQueueLength" Table false Attribute "callQueueLength" # The two attributes below are identical; one is a renamed version of the other. Type "gauge" InstancePrefix "regionserver-compactionQueueLength" Table false # This is the name used in HBase 0.94 and earlier. Attribute "compactionQueueSize" Type "gauge" InstancePrefix "regionserver-compactionQueueLength" Table false Attribute "compactionQueueLength" Type "gauge" InstancePrefix "regionserver-flushQueueLength" Table false Attribute "flushQueueSize" Type "gauge" # Renamed for consistency with newer metrics. InstancePrefix "regionserver-memStoreSizeMB" Table false Attribute "memstoreSizeMB" Type "gauge" InstancePrefix "regionserver-numberOfOnlineRegions" Table false Attribute "numberOfOnlineRegions" Type "counter" # Renamed for consistency with newer metrics. InstancePrefix "regionserver-readRequestCount" Table false Attribute "readRequestsCount" Type "counter" # Renamed for consistency with newer metrics. InstancePrefix "regionserver-writeRequestCount" Table false Attribute "writeRequestsCount" Type "counter" # Renamed for consistency with newer metrics. InstancePrefix "regionserver-slowAppendCount" Table false Attribute "slowHLogAppendCount" Type "gauge" InstancePrefix "regionserver-usedHeapMB" Table false Attribute "usedHeapMB" Type "gauge" InstancePrefix "regionserver-blockCacheCount" Table false Attribute "blockCacheCount" # The two attributes below are identical; one is a renamed version of the other. Type "counter" InstancePrefix "regionserver-blockCacheEvictedCount" Table false # This is the name used in HBase 0.94 and earlier. Attribute "blockCacheEvictedCount" Type "counter" InstancePrefix "regionserver-blockCacheEvictionCount" Table false Attribute "blockCacheEvictionCount" Type "gauge" InstancePrefix "regionserver-blockCacheFreeMB" Table false Attribute "blockCacheFreeMB" Type "counter" InstancePrefix "regionserver-blockCacheHitCount" Table false Attribute "blockCacheHitCount" Type "counter" InstancePrefix "regionserver-blockCacheMissCount" Table false Attribute "blockCacheMissCount" Type "gauge" InstancePrefix "regionserver-blockCacheSizeMB" Table false Attribute "blockCacheSizeMB" Type "gauge" # Renamed for consistency with newer metrics. InstancePrefix "regionserver-storeCount" Table false Attribute "NumberOfStores" Type "gauge" InstancePrefix "regionserver-NumberOfStorefiles" Table false Attribute "NumberOfStorefiles" Type "gauge" InstancePrefix "regionserver-requestsPerSecond" Table false Attribute "requestsPerSecond" Type "gauge" InstancePrefix "regionserver-storeFileIndexSizeMB" Table false Attribute "storeFileIndexSizeMB" # When using non-standard HBase configurations, replace the below with #ServiceURL "service:jmx:rmi:///jndi/rmi://HBASE_HOST:HBASE_REGIONSERVER_PORT/jmxrmi" ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:10102/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_REGIONSERVER_PORT/jmxrmi" ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:10102/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 LoadPlugin target_scale Plugin "^GenericJMX$" PluginInstance "^hbase.*$" PluginInstance "hbase" "" Plugin "hbase" TypeInstance "^.*MB$" Factor 1048576 # 1024 * 1024 TypeInstance "MB" "" Target "return" Chain "GenericJMX_hbase" PreCacheChain "PreCache" Plugin "^GenericJMX$" PluginInstance "^jvm.*$" PluginInstance "jvm" "" Plugin "jvm" Target "return" Chain "GenericJMX_jvm" PreCacheChain "PreCache"