/hbase-metrics

Wrapper to collect metrics from HBase

Primary LanguageRubyApache License 2.0Apache-2.0

hbase-metrics

hbase-metrics is a wrapper to collect metrics from HBase. It utilizes hadoop-metrics2 (https://github.com/ryukobayashi/hadoop-metrics2)

Installation

gem

gem install hadoop-metrics2
gem install hbase-metrics

Usage

HMaster

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)

RegionServer

require 'hbase_metrics/region_server'

rs = HBaseMetrics::RegionServer.new("localhost", 16030, false)
puts JSON.pretty_generate(rs.server)
puts JSON.pretty_generate(rs.regions)

Copyright

AuthorHironori Ogibayashi
CopyrightCopyright (c) 2015- Hironori Ogibayashi
LicenseApache2 License