> ## Documentation Index
> Fetch the complete documentation index at: https://cockroachlabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Queues Dashboard

export const InternalLink = ({version, path = "", children, ...props}) => {
  let detectedVersion = version || "stable";
  if (typeof window !== 'undefined' && !version) {
    const match = window.location.pathname.match(/\/docs\/([^/]+)/);
    if (match) {
      detectedVersion = match[1];
    }
  }
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
  return <a href={`/docs/${detectedVersion}/${normalizedPath}`} {...props}>
      {children}
    </a>;
};

The **Queues** dashboard lets you monitor the health and performance of various queueing systems in CockroachDB.

To view this dashboard, <InternalLink path="ui-overview#db-console-access">access the DB Console</InternalLink> and click **Metrics** on the left-hand navigation, and then select **Dashboard** > **Queues**.

## Dashboard navigation

Use the **Graph** menu to display metrics for your entire cluster or for a specific node.

To the right of the Graph and Dashboard menus, a time interval selector allows you to filter the view for a predefined or custom time interval. Use the navigation buttons to move to the previous, next, or current time interval. When you select a time interval, the same interval is selected in the <InternalLink path="ui-overview#sql-activity">SQL Activity</InternalLink> pages. However, if you select 10 or 30 minutes, the interval defaults to 1 hour in SQL Activity pages.

Hovering your mouse pointer over the graph title will display a tooltip with a description and the <InternalLink path="essential-metrics-self-hosted">metrics</InternalLink> used to create the graph.

When hovering on graphs, crosshair lines will appear at your mouse pointer. The series' values corresponding to the given time in the cross hairs are displayed in the legend under the graph. Hovering the mouse pointer on a given series displays the corresponding value near the mouse pointer and highlights the series line (graying out other series lines). Click anywhere within the graph to freeze the values in place. Click anywhere within the graph again to cause the values to change with your mouse movements once more.

In the legend, click on an individual series to isolate it on the graph. The other series will be hidden, while the hover will still work. Click the individual series again to make the other series visible. If there are many series, a scrollbar may appear on the right of the legend. This is to limit the size of the legend so that it does not get endlessly large, particularly on clusters with many nodes.

<Note>
  All timestamps in the DB Console are shown in Coordinated Universal Time (UTC).
</Note>

The **Queues** dashboard displays the following time series graphs:

## Queue Processing Failures

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_queue_failures.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=1b5603504a24633088e6815086f04f2f" alt="DB Console queue failures graph" width="948" height="331" data-path="images/common/ui/ui_queue_failures.png" />

The **Queue Processing Failures** graph displays processing failures experienced across various queuing systems.

Hovering over the graph displays values for the following metrics:

| Metric                  | Description                                                                                                                                          |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| GC                      | The number of replicas which failed processing in the garbage collection queue, as tracked by the `queue.gc.process.failure` metric.                 |
| Replica GC              | The number of replicas which failed processing in the replica garbage collection queue, as tracked by the `queue.replicagc.process.failure` metric.  |
| Replication             | The number of replicas which failed processing in the replica queue, as tracked by the `queue.replicate.process.failure` metric.                     |
| Split                   | The number of replicas which failed processing in the split queue, as tracked by the `queue.split.process.failure` metric.                           |
| Consistency             | The number of replicas which failed processing in the consistency checker queue, as tracked by the `queue.consistency.process.failure` metric.       |
| Raft Log                | The number of replicas which failed processing in the Raft log queue, as tracked by the `queue.raftlog.process.failure` metric.                      |
| Raft Snapshot           | The number of replicas which failed processing in the Raft repair queue, as tracked by the `queue.raftsnapshot.process.failure` metric.              |
| Time Series Maintenance | The number of replicas which failed processing in the time series maintenance queue, as tracked by the `queue.tsmaintenance.process.failure` metric. |

## Queue Processing Times

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_queue_time.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=3484d4126f8f92feb6feffe44612368c" alt="DB Console queue processing time graph" width="934" height="322" data-path="images/common/ui/ui_queue_time.png" />

The **Queue Processing Times** graph displays the processing rate across various queue systems.

Hovering over the graph displays values for the following metrics:

| Metric                  | Description                                                                                                                |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| GC                      | The processing rate for the garbage collection queue, as tracked by the `queue.gc.processingnanos` metric.                 |
| Replica GC              | The processing rate for the replica garbage collection queue, as tracked by the `queue.replicagc.processingnanos` metric.  |
| Replication             | The processing rate for the replication queue, as tracked by the `queue.replicate.processingnanos` metric.                 |
| Split                   | The processing rate for the split queue, as tracked by the `queue.split.processingnanos` metric.                           |
| Consistency             | The processing rate for the consistency checker queue, as tracked by the `queue.consistency.processingnanos` metric.       |
| Raft Log                | The processing rate for the Raft log queue, as tracked by the `queue.raftlog.processingnanos` metric.                      |
| Raft Snapshot           | The processing rate for the Raft repair queue, as tracked by the `queue.raftsnapshot.processingnanos` metric.              |
| Time Series Maintenance | The processing rate for the time series maintenance queue, as tracked by the `queue.tsmaintenance.processingnanos` metric. |

## Replica GC Queue

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_replicagc_queue.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=69b57d91d399d145513d8a4a060aed8b" alt="DB Console replica GC queue graph" width="935" height="318" data-path="images/common/ui/ui_replicagc_queue.png" />

The **Replica GC Queue** graph displays various details about the health and performance of the replica garbage collection queue.

Hovering over the graph displays values for the following metrics:

| Metric             | Description                                                                                                                                        |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Successful Actions | The number of replicas successfully processed by the replica garbage collection queue, as tracked by the `queue.replicagc.process.success` metric. |
| Pending Actions    | The number of pending replicas in the replica garbage collection queue, as tracked by the `queue.replicagc.pending` metric.                        |
| Replicas Removed   | The number of replica removals attempted in the replica garbage collection queue, as tracked by the `queue.replicagc.removereplica` metric.        |

## Replication Queue

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_replication_queue.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=620a6689ba74fc077524f7c6a569f11f" alt="DB Console replication queue graph" width="922" height="317" data-path="images/common/ui/ui_replication_queue.png" />

The **Replication Queue** graph displays various details about the health and performance of the replication queue.

Hovering over the graph displays values for the following metrics:

| Metric                   | Description                                                                                                                                              |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Successful Actions       | The number of replicas successfully processed by the replication queue, as tracked by the `queue.replicate.process.success` metric.                      |
| Pending Actions          | The number of pending replicas in the replication queue, as tracked by the `queue.replicate.pending` metric.                                             |
| Replicas Added           | The number of replica additions attempted by the replication queue, as tracked by the `queue.replicate.addreplica` metric.                               |
| Replicas Removed         | The number of replica removals attempted by the replication queue, as tracked by the `queue.replicate.removereplica` metric.                             |
| Dead Replicas Removed    | The number of dead replica removals attempted by the replication queue, as tracked by the `queue.replicate.removedeadreplica` metric.                    |
| Learner Replicas Removed | The number of learner replica removals attempted by the replication queue, as tracked by the `queue.replicate.removelearnerreplica` metric.              |
| Replicas Rebalanced      | The number of replica rebalancer-initiated additions attempted by the replication queue, as tracked by the `queue.replicate.rebalancereplica` metric.    |
| Leases Transferred       | The number of range lease transfers attempted by the replication queue, as tracked by the `queue.replicate.transferlease` metric.                        |
| Replicas in Purgatory    | The number of replicas in the replication queue's purgatory currently awaiting allocation options, as tracked by the `queue.replicate.purgatory` metric. |

## Split Queue

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_split_queue.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=688cb354ef7d1cec3f2069f10beeb4b4" alt="DB Console split queue graph" width="934" height="316" data-path="images/common/ui/ui_split_queue.png" />

The **Split Queue** graph displays various details about the health and performance of the split queue.

Hovering over the graph displays values for the following metrics:

| Metric             | Description                                                                                                               |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| Successful Actions | The number of replicas successfully processed by the split queue, as tracked by the `queue.split.process.success` metric. |
| Pending Actions    | The number of pending replicas in the split queue, as tracked by the `queue.split.pending` metric.                        |

## Merge Queue

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_merge_queue.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=c20dd35f406cdb55032a41d257a60933" alt="DB Console merge queue graph" width="930" height="318" data-path="images/common/ui/ui_merge_queue.png" />

The **Merge Queue** graph displays various details about the health and performance of the merge queue.

Hovering over the graph displays values for the following metrics:

| Metric             | Description                                                                                                               |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| Successful Actions | The number of replicas successfully processed by the merge queue, as tracked by the `queue.merge.process.success` metric. |
| Pending Actions    | The number of pending replicas in the merge queue, as tracked by the `queue.merge.pending` metric.                        |

## Raft Log Queue

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_raftlog_queue.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=cb1dcf1c2a2cb52d2ac1aae9c163d58a" alt="DB Console Raft log queue graph" width="936" height="313" data-path="images/common/ui/ui_raftlog_queue.png" />

The **Raft Log Queue** graph displays various details about the health and performance of the Raft log queue.

Hovering over the graph displays values for the following metrics:

| Metric             | Description                                                                                                                    |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| Successful Actions | The number of replicas successfully processed by the Raft log queue, as tracked by the `queue.raftlog.process.success` metric. |
| Pending Actions    | The number of pending replicas in the Raft log queue, as tracked by the `queue.raftlog.pending` metric.                        |

## Raft Snapshot Queue

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_raftsnapshot_queue.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=0cf9441e80ecd19a536eb08da0db0ac3" alt="DB Console Raft snapshot queue graph" width="935" height="318" data-path="images/common/ui/ui_raftsnapshot_queue.png" />

The **Raft Snapshot Queue** graph displays various details about the health and performance of the Raft repair queue.

Hovering over the graph displays values for the following metrics:

| Metric             | Description                                                                                                                            |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| Successful Actions | The number of replicas successfully processed by the Raft repair queue, as tracked by the `queue.raftsnapshot.process.success` metric. |
| Pending Actions    | The number of pending replicas in the Raft repair queue, as tracked by the `queue.raftsnapshot.pending` metric.                        |

## Consistency Checker Queue

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_consistencychecker_queue.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=8f737002c0f388ead191df4a869170cc" alt="DB Console consistency checker queue graph" width="946" height="333" data-path="images/common/ui/ui_consistencychecker_queue.png" />

The **Consistency Checker Queue** graph displays various details about the health and performance of the consistency checker queue.

Hovering over the graph displays values for the following metrics:

| Metric             | Description                                                                                                                                   |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Successful Actions | The number of replicas successfully processed by the consistency checker queue, as tracked by the `queue.consistency.process.success` metric. |
| Pending Actions    | The number of pending replicas in the consistency checker queue, as tracked by the `queue.consistency.pending` metric.                        |

## Time Series Maintenance Queue

<img src="https://mintcdn.com/cockroachlabs/8_H4KrPlYfe30hE8/images/common/ui/ui_tsmaintenance_queue.png?fit=max&auto=format&n=8_H4KrPlYfe30hE8&q=85&s=4b03d3bdb87d518fdfdcff606c159af6" alt="DB Console time series maintenance queue graph" width="929" height="317" data-path="images/common/ui/ui_tsmaintenance_queue.png" />

The **Time Series Maintenance Queue** graph displays various details about the health and performance of the time series maintenance queue.

Hovering over the graph displays values for the following metrics:

| Metric             | Description                                                                                                                                         |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| Successful Actions | The number of replicas successfully processed by the time series maintenance queue, as tracked by the `queue.tsmaintenance.process.success` metric. |
| Pending Actions    | The number of pending replicas in the time series maintenance queue, as tracked by the `queue.tsmaintenance.pending` metric.                        |

## MVCC GC Queue

<img src="https://mintcdn.com/cockroachlabs/NXeupIfOAa-SZMEU/images/v23.2/ui_mvcc_gc_queue.png?fit=max&auto=format&n=NXeupIfOAa-SZMEU&q=85&s=441e804893c662ee69824e549c1736c4" alt="DB Console GC queue graph" width="1732" height="626" data-path="images/v23.2/ui_mvcc_gc_queue.png" />

The **MVCC GC Queue** graph displays various details about the health and performance of the <InternalLink path="architecture/storage-layer#garbage-collection">garbage collection</InternalLink> queue.

Hovering over the graph displays values for the following metrics:

| Metric             | Description                                                                                                                                                                                                           |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Successful Actions | The number of replicas successfully processed by the <InternalLink path="architecture/storage-layer#garbage-collection">garbage collection</InternalLink> queue, as tracked by the `queue.gc.process.success` metric. |
| Pending Actions    | The number of pending replicas in the <InternalLink path="architecture/storage-layer#garbage-collection">garbage collection</InternalLink> queue, as tracked by the `queue.gc.pending` metric.                        |

## Protected Timestamp Records

<img src="https://mintcdn.com/cockroachlabs/NXeupIfOAa-SZMEU/images/v23.2/ui_protected_timestamp_records.png?fit=max&auto=format&n=NXeupIfOAa-SZMEU&q=85&s=f2afebbac6fdc345ce4c5fcea573b9b6" alt="DB Console GC queue graph" width="1732" height="628" data-path="images/v23.2/ui_protected_timestamp_records.png" />

The **Protected Timestamp Records** graph displays the number of <InternalLink path="architecture/storage-layer#protected-timestamps">protected timestamp</InternalLink> records (used by backups, changefeeds, etc. to prevent MVCC GC) per node, as tracked by the `spanconfig.kvsubscriber.protected_record_count` metric.

## Summary and events

### Summary panel

A **Summary** panel of key metrics is displayed to the right of the timeseries graphs.

| Metric             | Description                                                                                                                                                            |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Total Nodes        | The total number of nodes in the cluster. <InternalLink path="node-shutdown?filters=decommission">Decommissioned nodes</InternalLink> are not included in this count.  |
| Capacity Used      | The storage capacity used as a percentage of <InternalLink path="ui-cluster-overview-page#capacity-metrics">usable capacity</InternalLink> allocated across all nodes. |
| Unavailable Ranges | The number of unavailable ranges in the cluster. A non-zero number indicates an unstable cluster.                                                                      |
| Queries per second | The total number of `SELECT`, `UPDATE`, `INSERT`, and `DELETE` queries executed per second across the cluster.                                                         |
| P99 Latency        | The 99th percentile of service latency.                                                                                                                                |

If you are testing your deployment locally with multiple CockroachDB nodes running on a single machine (this is <InternalLink path="recommended-production-settings#topology">not recommended in production</InternalLink>), you must explicitly <InternalLink path="cockroach-start#store">set the store size</InternalLink> per node in order to display the correct capacity. Otherwise, the machine's actual disk capacity will be counted as a separate store for each node, thus inflating the computed capacity.

### Events panel

Underneath the [Summary](#summary-panel) panel, the **Events** panel lists the 5 most recent events logged for all nodes across the cluster. To list all events, click **View all events**.

<img src="https://mintcdn.com/cockroachlabs/bulMe5iV6qsi6_Jh/images/v23.2/ui_events.png?fit=max&auto=format&n=bulMe5iV6qsi6_Jh&q=85&s=a65b57ab3576d82fe30967759c020680" alt="DB Console Events" width="668" height="1036" data-path="images/v23.2/ui_events.png" />

The following types of events are listed:

* Database created
* Database dropped
* Table created
* Table dropped
* Table altered
* Index created
* Index dropped
* View created
* View dropped
* Schema change reversed
* Schema change finished
* Node joined
* Node decommissioned
* Node restarted
* Cluster setting changed

## See also

* <InternalLink path="troubleshooting-overview">Troubleshooting Overview</InternalLink>
* <InternalLink path="support-resources">Support Resources</InternalLink>
* <InternalLink path="monitoring-and-alerting#raw-status-endpoints">Raw Status Endpoints</InternalLink>
