Postgres Database

Get PostgreSQL database metrics

get/project/{project_id}/location/{location}/postgres/{postgres_database_reference}/metrics

Query parameters

startstring
Example:2025-05-12T11:57:24+00:00

Start time for metrics query (rfc3339 format)

endstring
Example:2025-05-12T11:27:24+00:00

End time for metrics query (rfc3339 format)

keystring
Example:cpu_usage

Key of the specific metric to retrieve

Response

Metrics data for a Postgres Database

Example response

{
  "metrics": [
    {
      "key": "cpu_usage",
      "name": "CPU Usage",
      "description": "CPU usage of the Postgres database",
      "unit": "percent",
      "series": [
        {
          "labels": {
            "server": "pv9z3a26qkyy4qcxrhzg5f1bs8"
          }
        }
      ]
    }
  ]
}