[ https://issues.apache.org/jira/browse/HBASE-20654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16492693#comment-16492693 ]
Ted Yu commented on HBASE-20654: -------------------------------- Please refer to the following code in MetricsMasterSourceImpl : {code} .tag(Interns.info(DEAD_REGION_SERVERS_NAME, DEAD_REGION_SERVERS_DESC), masterWrapper.getDeadRegionServers()) {code} I think exposing each region in transition would be difficult since we don't know the region names at startup. We can follow existing metric such as the following: {code} "name" : "Hadoop:service=HBase,name=Master,sub=Server", "modelerType" : "Master,sub=Server", "tag.liveRegionServers" : "ctr-e138-1518143905142-329221-01-000002.hwx.site,16020,1527267274818;ctr-e138-1518143905142-329221-01-000003.hwx.site,16020,1527267276442;ctr-e138-1518143905142-329221-01-000005.hwx.site,16020,1527267274409;ctr-e138-1518143905142-329221-01-000006.hwx.site,16020,1527267273345;ctr-e138-1518143905142-329221-01-000007.hwx.site,16020,1527267275021", "tag.deadRegionServers" : "", {code} Meaning, create tag for each region state: OPENING, CLOSED, etc. For each tag, list the top N (configurable) encoded region names. > Expose regions in transition thru JMX > ------------------------------------- > > Key: HBASE-20654 > URL: https://issues.apache.org/jira/browse/HBASE-20654 > Project: HBase > Issue Type: Improvement > Reporter: Ted Yu > Assignee: liubangchen > Priority: Major > > Currently only the count of regions in transition is exposed thru JMX. > Here is a sample snippet of the /jmx output: > {code} > { > "beans" : [ { > ... > }, { > "name" : "Hadoop:service=HBase,name=Master,sub=AssignmentManager", > "modelerType" : "Master,sub=AssignmentManager", > "tag.Context" : "master", > ... > "ritCount" : 3 > {code} > It would be desirable to expose region name, state for the regions in > transition as well. > We can place configurable upper bound on the number of entries returned in > case there're a lot of regions in transition. -- This message was sent by Atlassian JIRA (v7.6.3#76005)