SQL Dashboard

On this page Carat arrow pointing down

The SQL dashboard in the CockroachDB Admin UI lets you monitor the performance of your SQL queries. To view this dashboard, access the Admin UI, click Metrics on the left-hand navigation bar, and then select Dashboard > SQL.

The SQL dashboard displays the following time series graphs:

SQL Connections

CockroachDB Admin UI SQL Connections

  • In the node view, the graph shows the number of connections currently open between the client and the selected node.

  • In the cluster view, the graph shows the total number of SQL client connections to all nodes combined.

SQL Byte Traffic

CockroachDB Admin UI SQL Byte Traffic

The SQL Byte Traffic graph helps you correlate SQL query count to byte traffic, especially in bulk data inserts or analytic queries that return data in bulk.

  • In the node view, the graph shows the current byte throughput (bytes/second) between all the currently connected SQL clients and the node.

  • In the cluster view, the graph shows the aggregate client throughput across all nodes.

SQL Queries

CockroachDB Admin UI SQL Queries

  • In the node view, the graph shows the 10-second average of the number of SELECT/INSERT/UPDATE/DELETE queries per second issued by SQL clients on the node.

  • In the cluster view, the graph shows the sum of the per-node averages, that is, an aggregate estimation of the current query load over the cluster, assuming the last 10 seconds of activity per node are representative of this load.

SQL Query Errors

CockroachDB Admin UI SQL Query Errors

  • In the node view, the graph shows the 10-second average of the number of SQL statements issued to the node that returned a planning, runtime, or retry error.

  • In the cluster view, the graph shows the 10-second average of the number of SQL statements that returned a planning, runtime, or retry error across all nodes.

Service Latency: SQL, 99th percentile

CockroachDB Admin UI Service Latency

Service latency is calculated as the time between when the cluster receives a query and finishes executing the query. This time does not include returning results to the client.

  • In the node view, the graph displays the 99th percentile of service latency for the selected node.

  • In the cluster view, the graph displays the 99th percentile of service latency for each node in the cluster.

Transactions

CockroachDB Admin UI Transactions

  • In the node view, the graph shows the 10-second average of the number of opened, committed, aborted, and rolled back transactions per second issued by SQL clients on the node.

  • In the cluster view, the graph shows the sum of the per-node averages, that is, an aggregate estimation of the current transactions load over the cluster, assuming the last 10 seconds of activity per node are representative of this load.

If the graph shows excessive aborts or rollbacks, it might indicate issues with the SQL queries. In that case, re-examine queries to lower contention.

Other graphs

The SQL dashboard shows other time series graphs that are important for CockroachDB developers:

  • Execution Latency
  • Active Distributed SQL Queries
  • Active Flows for Distributed SQL Queries
  • Service Latency: DistSQL
  • Schema Changes

For monitoring CockroachDB, it is sufficient to use the SQL Connections, SQL Byte Traffic, SQL Queries, Service Latency, and Transactions graphs.

See also


Yes No
On this page

Yes No