> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/databases/postgresql/how-tos/v2/view-postgresql-cluster-metrics.md).

# View PostgreSQL Cluster Metrics

You can monitor the performance of your PostgreSQL v2 clusters by opening the metrics dashboard in Grafana directly from the DCD.

{% hint style="info" %}
**Prerequisites:**

* An active PostgreSQL v2 cluster with **Logs** and **Metrics** activated. For more information, see [<mark style="color:blue;">Configure Observability</mark>](/cloud/databases/postgresql/how-tos/v2/create-postgresql-cluster.md#configure-observability).
* Access to the [<mark style="color:blue;">Grafana dashboard</mark>](/cloud/observability/monitoring-service/quick-start/access-metrics-from-platform.md). For more information, see [<mark style="color:blue;">Access Metrics from the Platform</mark>](/cloud/observability/monitoring-service/quick-start/access-metrics-from-platform.md).
  {% endhint %}

{% stepper %}
{% step %}

## Navigate to PostgreSQL clusters

1\. In the **DCD**, go to **Menu** > **Databases** > **PostgreSQL**.

A list of all PostgreSQL clusters is displayed.

2\. Note the **LOCATION** of the cluster for which you want to monitor the metrics.

![PostgreSQL cluster location](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-8f00d50955ca522d119a2c88c83eb569bf782781%2Fcluster-location.png?alt=media)
{% endstep %}

{% step %}

## Activate Central Monitoring for a region

To view a cluster's metrics, you must activate **Central Monitoring** for the region where the cluster is located. To do so, complete the steps in [<mark style="color:blue;">Turn on Central Monitoring for a region</mark>](/cloud/observability/monitoring-service/dcd-how-tos/central-monitoring.md).

{% hint style="warning" %}
**Important:** Metric collection begins as soon as a new instance is provisioned, but initial metrics take 10 minutes to 1 hour to appear in the DCD or through the API. After that, you can poll for metrics at any time.
{% endhint %}
{% endstep %}

{% step %}

## Open Grafana from the cluster details

1\. Select a cluster (for whose location **Central Monitoring** was activated) from the list by clicking on its name. Alternatively, click **Details** in the **OPTIONS** column.

![PostgreSQL cluster details](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-af54a17bc63cb13c77190d3b2602b55b8640f163%2Fmanage-cluster.png?alt=media)

2\. From the **Cluster details** page, go to **Observability** section, and select **Open in Grafana** to open the Grafana dashboard for the cluster's data center location. If you have instances in multiple regions, a region drop-down appears so you can switch between them.

![PostgreSQL cluster Observability](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-fcd8d7f344fd546a7158eb2709be7d9fc8a406fc%2Fopen-in-grafana.png?alt=media)

3\. Log in to the Grafana dashboard using <code class="expression">space.vars.ionos\_cloud</code> Single Sign-On (SSO). For more information, see [<mark style="color:blue;">Access Metrics from the Platform</mark>](/cloud/observability/monitoring-service/quick-start/access-metrics-from-platform.md).
{% endstep %}

{% step %}

## Configure the data source

1\. From the Grafana home page, on the left-hand menu, go to **Connections** > **Data sources**.

2\. From the **Drilldown** > **Metrics**, select **Mimir** from the **Data source** drop-down list.

![Grafana metrics Data sources](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-cdc3a56c0fefd4ec71a09053080a4a25f7923025%2Fgrafana-metrics-data-sources.png?alt=media)
{% endstep %}

{% step %}

## View PostgreSQL database metrics

In the **Search metric**, search for PostgreSQL [<mark style="color:blue;">Metrics</mark>](/cloud/databases/postgresql/overview/metrics.md#database-health-metrics). You can view both infrastructure and health metrics.

![PostgreSQL cluster health metrics](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-7ce28a505a3382d739722330757420cb6d757ca1%2Fpostgresql-grafana-health-metrics.png?alt=media)
{% endstep %}
{% endstepper %}

{% hint style="success" %}
**Result:** The Grafana metrics explorer displays available PostgreSQL metrics. You can search and visualize metrics to monitor cluster health and performance. You can also view the infrastructure metrics. For a full list of available metrics, see [<mark style="color:blue;">Metrics</mark>](/cloud/databases/postgresql/overview/metrics.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/databases/postgresql/how-tos/v2/view-postgresql-cluster-metrics.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
