Maxim Muzafarov created CASSANDRA-19619:
-------------------------------------------
Summary: Enforce contract for internal metrics naming
Key: CASSANDRA-19619
URL: https://issues.apache.org/jira/browse/CASSANDRA-19619
Project: Cassandra
Issue Type: Task
Reporter: Maxim Muzafarov
Assignee: Maxim Muzafarov
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,
{code}
// 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
{code}
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]