Skip to content

ogibayashi/hbase-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Wrapper to collect metrics from HBase

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages