# This is the monitoring configuration for HBase Thrift. # Look for HBASE_HOST and HBASE_THRIFT_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=Thrift,sub=ThriftOne" Type "gauge" InstancePrefix "thrift_one-callQueueLen" Table false Attribute "callQueueLen" Type "gauge" InstancePrefix "thrift_one-SlowThriftCall_mean" Table false Attribute "SlowThriftCall_mean" Type "gauge" InstancePrefix "thrift_one-TimeInQueue_mean" Table false Attribute "TimeInQueue_mean" Type "gauge" InstancePrefix "thrift_one-ThriftCall_mean" Table false Attribute "ThriftCall_mean" Type "gauge" InstancePrefix "thrift_one-BatchGet_mean" Table false Attribute "BatchGet_mean" Type "gauge" InstancePrefix "thrift_one-BatchMutate_mean" Table false Attribute "BatchMutate_mean" ObjectName "Hadoop:service=HBase,name=Thrift,sub=ThriftTwo" Type "gauge" InstancePrefix "thrift_two-callQueueLen" Table false Attribute "callQueueLen" Type "gauge" InstancePrefix "thrift_two-SlowThriftCall_mean" Table false Attribute "SlowThriftCall_mean" Type "gauge" InstancePrefix "thrift_two-TimeInQueue_mean" Table false Attribute "TimeInQueue_mean" Type "gauge" InstancePrefix "thrift_two-ThriftCall_mean" Table false Attribute "ThriftCall_mean" Type "gauge" InstancePrefix "thrift_two-BatchGet_mean" Table false Attribute "BatchGet_mean" Type "gauge" InstancePrefix "thrift_two-BatchMutate_mean" Table false Attribute "BatchMutate_mean" # When using non-standard HBase configurations, replace the below with #ServiceURL "service:jmx:rmi:///jndi/rmi://HBASE_HOST:HBASE_THRIFT_PORT/jmxrmi" ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:10103/jmxrmi" InstancePrefix "hbasethrift" Collect "hbase_thrift_ThriftOne" Collect "hbase_thrift_ThriftTwo" LoadPlugin match_regex LoadPlugin target_set LoadPlugin target_replace Plugin "^GenericJMX$" PluginInstance "^hbase.*$" PluginInstance "hbase" "" Plugin "hbase" Target "return" Chain "GenericJMX_hbase" PreCacheChain "PreCache"