Common labels
Every metric carries the following labels:
Some metrics add a label for the dimension they break out (e.g.
mode on CPU metrics, state on connections, database on database
size). Those are listed alongside each metric.
Information metric
PostgresServiceInfo is a gauge that always equals 1 and carries the
service’s current status and version on its labels. Use it to join
status onto other metrics or to alert on a service leaving the
running state.
postgres_status reports the current lifecycle state of the service
(for example running, creating, stopped). postgres_version
reports the major Postgres version (e.g. 17, 18).
Capacity
Static limits provisioned for the service. These change only when the service is resized.Resource utilization
To compute CPU usage as a percentage, take the rate of
PostgresServer_CPUSeconds_Total over the modes you care about and
divide by PostgresServer_CPUCores.
Disk and network I/O
Database activity
Cumulative counters since service start. Userate() or irate() to
turn them into per-second values.
Connections, cache, and database size
Related pages
- Prometheus endpoint — setup, authentication, and scraping
- Dashboard — built-in cloud console charts
- OpenAPI guide — API key creation and lookup of organization and service IDs