Yugabyte Cloud Query Language (YCQL) is a semi-relational SQL API that is best fit for internet-scale OLTP and HTAP applications needing massive data ingestion and blazing-fast queries.
We can connect to YCQL various ways. For example, via ycqlsh, the shell for interacting with the YugabyteDB YCQL API. We can also use DBeaver Enterprise and TablePlus.
As a DBA you might wonder how many current connections exist.
While there aren’t any system catalog tables that track this detail, we can instead use the YCQL metrics endpoint to display the number of connections for a given DB node (i.e. T-Server).
Example:
The YCQL metrics enpoint is <node IP>:12000/metrics. The metric we want is named rpc_connections_alive. From the command line we can use the curl command to query the end point, then apply several Linux commands to extarct the info we need to calculate and display the number of YCQL connections on the node.