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

# MOLT Fetch Metrics

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>;
};

This page lists the <InternalLink path="molt-fetch">MOLT Fetch</InternalLink> metrics that you can use to observe the progress of a MOLT Fetch command execution.

## Metrics

By default, MOLT Fetch exports [Prometheus](https://prometheus.io/) metrics at `127.0.0.1:3030/metrics`. You can configure this endpoint with the <InternalLink path="molt-fetch-commands-and-flags">`--metrics-listen-addr`</InternalLink> flag.

Cockroach Labs recommends monitoring the following metrics:

| Metric Name                           | Description                                                                                                                   |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `molt_fetch_num_tables`               | Number of tables that will be moved from the source.                                                                          |
| `molt_fetch_num_task_errors`          | Number of errors encountered by the fetch task.                                                                               |
| `molt_fetch_overall_duration`         | Duration (in seconds) of the fetch task.                                                                                      |
| `molt_fetch_rows_exported`            | Number of rows that have been exported from a table. For example:<br />`molt_fetch_rows_exported{table="public.users"}`       |
| `molt_fetch_rows_imported`            | Number of rows that have been imported from a table. For example:<br />`molt_fetch_rows_imported{table="public.users"}`       |
| `molt_fetch_table_export_duration_ms` | Duration (in milliseconds) of a table's export. For example:<br />`molt_fetch_table_export_duration_ms{table="public.users"}` |
| `molt_fetch_table_import_duration_ms` | Duration (in milliseconds) of a table's import. For example:<br />`molt_fetch_table_import_duration_ms{table="public.users"}` |

To visualize the preceding metrics, use the Grafana dashboard <InternalLink path="molt-fetch-installation">bundled with your binary (`grafana_dashboard.json`)</InternalLink>. The bundled dashboard matches your binary version. Alternatively, you can download the [latest dashboard](https://molt.cockroachdb.com/molt/cli/grafana_dashboard.json).

## See also

* <InternalLink path="molt-fetch">MOLT Fetch</InternalLink>
* <InternalLink path="molt-fetch-best-practices">MOLT Fetch Best Practices</InternalLink>
* <InternalLink path="migration-overview">Migration Overview</InternalLink>
* <InternalLink path="molt-replicator">MOLT Replicator</InternalLink>
