Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19619

Enforce contract for internal metrics naming

    XMLWordPrintableJSON

Details

    Description

      Metrics have their internal representation which uniquely identifies a particular metric name. The name is formed as <metric group>.<metric type>.<metric name>.<metric scope>. For some metrics, the scope includes a metric name that is not necessary for uniqueness, this can be simplified.

      For example,

      // AS IS
      org.apache.cassandra.metrics.StorageAttachedIndex.BalancedTreeIntersectionEarlyExits.my_keyspace.my_table.ColumnQueryMetrics.BalancedTreeIntersectionEarlyExits
      
      // TO BE
      org.apache.cassandra.metrics.StorageAttachedIndex.BalancedTreeIntersectionEarlyExits.my_keyspace.my_table.ColumnQueryMetrics
      

      The metrics are filtered based on knowledge of how they are formatted, so having a metric scope without a built-in metric name also simplifies the way we filter metrics.

      Attachments

        1. ci_summary.html
          27 kB
          Caleb Rackliffe
        2. ci_summary-1.html
          40 kB
          Caleb Rackliffe

        Activity

          People

            mmuzaf Maxim Muzafarov
            mmuzaf Maxim Muzafarov
            Maxim Muzafarov
            Caleb Rackliffe, Michael Semb Wever
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m