Skip to main content

Operations

The Operations tab breaks a database down into its operations - each a class of query, such as a SELECT against a given table - so you can find the slowest or busiest and drill into its query spans. It is the database analog of a service's Transactions tab.

Use the Top N selector (Top 5, Top 20 by default, or Top 100) to set how many operations to return; they are ranked by total time spent. The selection applies to both the charts and the table.

The Operations tab for a database: the Total time spent, Query time, Queries/s, and Failures/s charts above the per-operation table, with its Operation, Table, Calling services, trend, and Total time spent columns.

Charts​

Four charts summarize the selected operations:

  • Total time spent: each operation's share of total query time over the selected range. The tallest bands are the operations the database spends the most time on.
  • Query time: query duration per operation at a selected percentile (Avg, P50, P75, P90, P95, or P99).
  • Queries/s: query throughput per operation.
  • Failures/s: failed queries per second, per operation.

Operations table​

The table below the charts lists each operation. It opens with a compact set of columns:

  • Operation: the database operation or command that ran.
  • Table: the table or collection the operation targeted.
  • Calling services: how many services issued the operation.
  • Avg latency trend, Queries trend, and Failure rate trend: a sparkline each for average query duration, queries per second, and the share of queries that failed over the selected range, with the period's value beside it. Hover a sparkline to read the value at a point in time.
  • Total time spent: cumulative time spent on this operation, as a bar with the value beside it, and its share of the operations shown.

The trends carry the reading most of the time, so the plain numbers behind them are hidden until you ask for them. Select Manage columns to add any of:

  • Avg and P50-P99: query response time, on average and by percentile.
  • Total queries and Queries/s: query volume and throughput.
  • Total failures, Failure rate, Failures/s, and Failures/min: failed-query counts and rates.

Use Search operations to find one by name, Manage columns to choose which columns show and pin them left or right, Export to download the table, and View query to inspect the query behind the table.

Operation drilldown​

Select an operation - by selecting its row, or with Enter or Space - to open a drawer scoped to that one operation.

The database operation drawer for a single operation, showing the Avg time, P95, Total queries, Total failures, and Failure rate metrics, the Query time, Queries/s, and Failures/s charts, and the spans table.

The drawer's header carries the operation and table names with their own time picker, and a toolbar with Copy operation name, Copy link, expand, Previous operation / Next operation, and close. Copy link produces a deep link that reopens the drawer.

The drawer then reports five metrics for the operation - Avg time, P95, Total queries, Total failures, and Failure rate - alongside three charts:

  • Query time: response time at a percentile you select.
  • Queries/s: query throughput for the operation.
  • Failures/s: failed queries per second.

At the bottom, a spans table lists the most recent spans recorded for the operation, so you can inspect an individual query and open the trace it belongs to.

Next steps​

Triage a database's failing queries in Errors.

Last updated on
Was this page helpful?