Details
-
Task
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Semantic
-
Low Hanging Fruit
-
All
-
None
-
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.