hbase-metrics is a wrapper to collect metrics from HBase. It utilizes hadoop-metrics2 (https://github.com/ryukobayashi/hadoop-metrics2)
gem install hadoop-metrics2
gem install hbase-metrics
require 'hbase_metrics/hbase_master'
master = HBaseMetrics::HMaster.new("localhost", 16010, false)
puts JSON.pretty_generate(master.server)
puts JSON.pretty_generate(master.assignment_manger)
puts JSON.pretty_generate(master.ipc)
require 'hbase_metrics/region_server'
rs = HBaseMetrics::RegionServer.new("localhost", 16030, false)
puts JSON.pretty_generate(rs.server)
puts JSON.pretty_generate(rs.regions)
Author | Hironori Ogibayashi |
Copyright | Copyright (c) 2015- Hironori Ogibayashi |
License | Apache2 License |