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

# Configure metrics stores

> Register Prometheus-compatible metrics stores in RisingWave Console and export metrics for offline analysis.

Metrics stores let Console query and visualize RisingWave metrics. Console supports Prometheus-compatible endpoints, including Prometheus and VictoriaMetrics.

Managed environments can install VictoriaMetrics automatically. For imported clusters, add an existing metrics store and attach it to the cluster connection.

## Add a metrics store

1. Open **Metrics Store** from the sidebar.
2. Click **Add**.
3. Enter a name.
4. Select the metrics store type.
5. Enter the endpoint URL.
6. Add any default labels needed to scope queries, such as a Kubernetes namespace label.
7. Save the store.

After saving, edit a cluster connection and select the metrics store. Metrics charts remain empty if the cluster has no metrics store attached.

<Frame>
  <img src="https://mintcdn.com/risingwavelabs/4wt5Zlp8JDWJF6oj/images/risingwave-console/risingwave-console-metrics-stores-list.png?fit=max&auto=format&n=4wt5Zlp8JDWJF6oj&q=85&s=ea2e8d7eaa652f632368dec691e8608d" width="1329" height="796" data-path="images/risingwave-console/risingwave-console-metrics-stores-list.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/risingwavelabs/4wt5Zlp8JDWJF6oj/images/risingwave-console/risingwave-console-import-metrics.png?fit=max&auto=format&n=4wt5Zlp8JDWJF6oj&q=85&s=a0401ae4289651b1eb67c80364820277" width="1275" height="866" data-path="images/risingwave-console/risingwave-console-import-metrics.png" />
</Frame>

## Managed metrics stores

When an environment installs VictoriaMetrics, Console treats that metrics store as managed. Managed metrics stores are owned by the environment lifecycle and may not allow the same edit or delete actions as imported metrics stores.

## Export metrics

Console can export metrics from a metrics store as a ZIP archive for offline analysis or support handoff.

1. Open **Metrics Store**.
2. Find the store.
3. Click **Export**.
4. Set **Start Time** and **End Time**. The UI accepts browser-local time and sends the request in UTC.
5. Select **Step**. Smaller steps produce larger archives.
6. Enter a PromQL selector, such as:

```text theme={null}
{__name__=~".+"}
```

or:

```text theme={null}
{namespace="risingwave-prod"}
```

7. Keep gzip compression enabled unless your downstream tooling cannot read compressed output.
8. Click **Download** and keep the tab open until the export finishes.

The downloaded file is named `metrics.zip`.

<Frame>
  <img src="https://mintcdn.com/risingwavelabs/4wt5Zlp8JDWJF6oj/images/risingwave-console/risingwave-console-export-metrics.png?fit=max&auto=format&n=4wt5Zlp8JDWJF6oj&q=85&s=cbe7be64ddd8dcfaa3a254563b3475ea" width="1275" height="866" data-path="images/risingwave-console/risingwave-console-export-metrics.png" />
</Frame>

## Troubleshooting

| Symptom                                 | Check                                                                                         |
| --------------------------------------- | --------------------------------------------------------------------------------------------- |
| Metrics charts are empty                | Confirm the cluster has a metrics store selected and the default labels match emitted series. |
| Export times out                        | Narrow the time range, increase the step, split into more parts, or reduce the memory ratio.  |
| Export archive is empty                 | The query matched no series in the selected time range.                                       |
| Managed metrics store cannot be deleted | It is owned by an environment. Delete or update the environment component instead.            |
