Tracing slow queries

Trace identified slow queries to view the stages in a query and determine where performance bottlenecks occur. Trace ad hoc CQL queries.

Trace slow queries to view the stages in a query and determine where performance bottlenecks occur.


Access to the trace query feature in OpsCenter requires permission granted to a user role. Those users with the admin role have full privileges.

Warning: When initially accessing the Slow Query console, a warning dialog informs you of potential consequences to data or performance when tracing queries. Review the information, select I Understand and click Close to continue.


  1. Click cluster name > Services.
  2. Click the Configure link for the Performance Service.
    The Overview tab displays the performance panels.
  3. Click the Slow Queries panel.
  4. Select a query from the Slow Queries list.
    The CQL query appears with syntax highlighting in the query box. Selecting a query from the list automatically selects the keyspace for the query.
  5. Click Trace.
    The query executes and displays each stage in the query, including timestamp and elapsed time in microseconds. To view the longest running stages of the query, sort the query by the Elapsed Time column. IP addresses for any nodes in the Source list are highlighted in red.

  6. To make adjustments to the query, select an option from the Consistency or Coordinator lists and experiment with running additional traces.
    Generally, selecting a keyspace is not applicable to tracing a query selected from the Slow Queries list because that was already done for that query. If you have tables named the same but located in different keyspaces, select the Keyspace to trace. The Slow Queries excludes system or OpsCenter keyspaces.
  7. To run an ad hoc query:
    1. Enter the CQL statement directly in the query box.
    2. Make any selections from the Consistency, Keyspace, or Coordinator lists.
    3. Click Trace.