> ## 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.

# TTL 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 **TTL** dashboard lets you monitor the progress and performance of <InternalLink path="row-level-ttl">batch deleting expired data using Row-Level TTL</InternalLink> from your cluster.

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

## 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.

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

## Processing Rate

You can monitor the **Processing Rate** graph to see how many rows per second are being processed by <InternalLink path="row-level-ttl#view-running-ttl-jobs">TTL jobs</InternalLink>.

<img src="https://mintcdn.com/cockroachlabs/6qI-DTIWMnaeNI5F/images/v24.1/ttl-processing-rate.png?fit=max&auto=format&n=6qI-DTIWMnaeNI5F&q=85&s=643e299dcf12a8a2cf277fc931aeefe8" alt="TTL processing rate graph" width="819" height="294" data-path="images/v24.1/ttl-processing-rate.png" />

| Metric        | Description                                              |
| ------------- | -------------------------------------------------------- |
| rows selected | The number of rows selected for deletion by the TTL job. |
| rows deleted  | The number of rows deleted by the TTL job.               |

## Estimated Rows

Monitor the **Estimated Rows** graph to see approximately how many rows are on the TTL table.

<img src="https://mintcdn.com/cockroachlabs/6qI-DTIWMnaeNI5F/images/v24.1/ttl-estimated-rows.png?fit=max&auto=format&n=6qI-DTIWMnaeNI5F&q=85&s=0f6f7b03a676398a86b89b7f58cf2d68" alt="TTL estimated rows graph" width="810" height="292" data-path="images/v24.1/ttl-estimated-rows.png" />

| Metric                             | Description                                                     |
| ---------------------------------- | --------------------------------------------------------------- |
| approximate number of rows         | The number of rows in all tables with TTL settings.             |
| approximate number of expired rows | The number of expired rows across all tables with TTL settings. |

## Job Latency

Monitor the **Job Latency** graph to see the latency of scanning and deleting within your cluster's <InternalLink path="row-level-ttl#view-running-ttl-jobs">TTL jobs</InternalLink>.

<img src="https://mintcdn.com/cockroachlabs/6qI-DTIWMnaeNI5F/images/v24.1/ttl-job-latency.png?fit=max&auto=format&n=6qI-DTIWMnaeNI5F&q=85&s=b59b466941e622a428857c6613ad9775" alt="TTL job latency graph" width="814" height="284" data-path="images/v24.1/ttl-job-latency.png" />

## Ranges in Progress

Monitor the **Ranges in Progress** graph to see the number of ranges currently being processed by <InternalLink path="row-level-ttl#view-running-ttl-jobs">TTL jobs</InternalLink>.

<img src="https://mintcdn.com/cockroachlabs/6qI-DTIWMnaeNI5F/images/v24.1/ttl-ranges-in-progress.png?fit=max&auto=format&n=6qI-DTIWMnaeNI5F&q=85&s=b9e1bb9a63abfecf51ffc2452d661d92" alt="TTL ranges in progress graph" width="815" height="289" data-path="images/v24.1/ttl-ranges-in-progress.png" />

| Metric                           | Description                                                                                                                                                                                                     |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| number of ranges being processed | How many <InternalLink path="architecture/distribution-layer#overview">ranges</InternalLink> are currently being processed by <InternalLink path="row-level-ttl#view-running-ttl-jobs">TTL jobs</InternalLink>. |

## 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/6qI-DTIWMnaeNI5F/images/v24.1/ui_events.png?fit=max&auto=format&n=6qI-DTIWMnaeNI5F&q=85&s=95789473b352dfd0057e0167cb9fe29d" alt="DB Console Events" width="668" height="1036" data-path="images/v24.1/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="row-level-ttl">Batch Delete Expired Data with Row-Level TTL</InternalLink>
* <InternalLink path="ui-overview">DB Console Overview</InternalLink>
* <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>
