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

Custom metrics for custom replication endpoints

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.2, 0.98.21, 2.0.0
    • 1.4.0, 0.98.22, 2.0.0
    • Replication
    • None
    • Reviewed

    Description

      ReplicationEndpoints contain a MetricsSource class that can update a fixed set of key replication metrics. It does not, however, allow a developer implementing a custom ReplicationEndpoint to create/update custom metrics unique to the new endpoint's use case.

      As it turns out, MetricsSource wraps a class, which in turn wraps a class, that implements the Hadoop BaseSource interface, which does allow for custom metrics. Simply having the two wrappers implement BaseSource as well with pass-through methods should be straightforward, and would allow replication endpoints to use these generic metric methods.

      Attachments

        1. HBASE-16448.patch
          17 kB
          Geoffrey Jacoby
        2. HBASE-16448-branch-1.patch
          17 kB
          Geoffrey Jacoby
        3. HBASE-16448-0.98.patch
          19 kB
          Geoffrey Jacoby

        Activity

          People

            gjacoby Geoffrey Jacoby
            gjacoby Geoffrey Jacoby
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: