skoppu22 opened a new pull request #1421: URL: https://github.com/apache/cassandra/pull/1421
Exposing CQL metrics to a virtual table. Below are CQL metrics from https://cassandra.apache.org/doc/latest/cassandra/operating/metrics.html#:~:text=org.apache.cassandra.metrics%3Atype%3DCQL,that%20are%20prepared%20vs%20unprepared. Name | Type | Description -- | -- | -- PreparedStatementsCount | Gauge<Integer> | Number of cached prepared statements. PreparedStatementsEvicted | Counter | Number of prepared statements evicted from the prepared statement cache PreparedStatementsExecuted | Counter | Number of prepared statements executed. RegularStatementsExecuted | Counter | Number of non prepared statements executed. PreparedStatementsRatio | Gauge<Double> | Percentage of statements that are prepared vs unprepared. Here is the virtual table created with this diff, output from cqlsh: cqlsh> select * from system_views.cql_metrics ; name | prepared_statements_count | prepared_statements_evicted | prepared_statements_executed | prepared_statements_ratio | regular_statements_executed -------+---------------------------+-----------------------------+------------------------------+---------------------------+----------------------------- value | 0 | 0 | 0 | 0 | 17 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

