Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20233

[metrics] Ill-formatted numRegions metric in "Hadoop:service=HBase,name=RegionServer,sub=Regions" mbean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.0
    • metrics, Operability
    • beginner

    Description

      Noticed this poking at metrics. The MBean "Hadoop:service=HBase,name=RegionServer,sub=Regions" carries per region metrics. They are all formatted like so:

      Namespace_default_table_IntegrationTestBigLinkedList_metric_incrementTime_98th_percentile: 0,
      Namespace_default_table_IntegrationTestBigLinkedList_metric_incrementTime_99th_percentile: 0,
      Namespace_default_table_IntegrationTestBigLinkedList_metric_incrementTime_99.9th_percentile: 0,
      Namespace_default_table_IntegrationTestBigLinkedList_metric_appendTime_num_ops: 0,
      Namespace_default_table_IntegrationTestBigLinkedList_metric_appendTime_min: 0,
      Namespace_default_table_IntegrationTestBigLinkedList_metric_appendTime_max: 0,
      Namespace_default_table_IntegrationTestBigLinkedList_metric_appendTime_mean: 0,
      

      In the middle of them all is a metric named...

      numRegions: 15,
      

      It has a different format and it is out of scope when compared to the other metrics in this mbean; it belongs better elsewhere, perhaps in the Server bean.

      I noticed it because it breaks the parse done by tcollector scraping our metrics from /jmx

      It was added long ago in HBASE-14166

      Attachments

        1. HBASE-20233-v1.patch
          2 kB
          Xu Cang
        2. HBASE-20233.patch
          2 kB
          Xu Cang

        Issue Links

          Activity

            People

              xucang Xu Cang
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: