OpenTSDB/tcollector — pull request #100 by lanusau (2013-07-29 17:08:48+00:00)
Title: Hbase collector for 0.94

Made following changes:

1. Use JAVA_HOME env variable to locate java executable and tools.jar. Some people use Oracle's JDK. If not set it still defaults to OpenJDK 1.6.0
2. Change JVM to attach to from HMaster to HRegionServer
3. Added bean regexp "Memory$" to collect global heap stats. This requires updated jmx.jar to work.
4. Ignore metrics with "BlockedSeconds" and "LatencyHistogram" in them - too much spam and little value IMHO
5. Ignore metrics from RegionServerDynamicStatistics, this includes per table and per CF metrics
6. For the *_NumOps|AvgTime|MaxTime metrics, only report for operations in REPORTED_OPS list. Otherwise the list of operations is huge.
7. For the metrics that end in _KB or _MB, convert value to bytes and remove suffix from the metric.

This now works fine for our Hbase 0.94.9 cluster. I have no means to test it for other HBase versions though.

Limus