Postgres database metrics
Experimental feature
This feature is an alpha feature, and is subject to API change, instability or removal. See the main Postgres page for more information.
All PostgreSQL databases running in the cluster export metrics using the Prometheus postgres exporter.
Viewing Postgres metrics in Grafana¶
To view Postgres metrics in your Grafana dashboard, you can use the normal cluster datasource.
- Log on to Grafana.
- Select desired datasource (aka environment), namespace and instance.
Viewing other Postgres metrics in Grafana¶
- Log on to Grafana.
- Go to Drilldown -> Metrics.
- Select desired datasource (aka environment).
- Add a label filter with
namespace=pg-<team-name>
. - Add a label filter with
cluster_name=<cluster-name>
. - Explore available metrics. Metrics from postgres-exporter usually start with
pg_
. - You can also create your own dashboards using these metrics.