GET
/
v1
/
databases
/
{id}
/
metrics
Get Database Metrics by ID
curl --request GET \
  --url https://api.vertracloud.app/v1/databases/{id}/metrics \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "response": [
    {
      "cpu": "0.50%",
      "ram": "128.00 MB",
      "storage": "256.00 MB",
      "network": [1024, 2048],
      "date": "2025-08-14T19:58:00Z"
    },
    {
      "cpu": "0.75%",
      "ram": "130.00 MB",
      "storage": "256.00 MB",
      "network": [2048, 4096],
      "date": "2025-08-14T20:00:00Z"
    }
  ]
}
id
string
required
The ID of the database to retrieve metrics for. If the database belongs to an organization, include the organization ID in the format dbId-orgId.

Response

status
string
Indicates whether the call was successful. success if successful, error if not.
response
array
An array of metric objects for the database over the last 24 hours.
{
  "status": "success",
  "response": [
    {
      "cpu": "0.50%",
      "ram": "128.00 MB",
      "storage": "256.00 MB",
      "network": [1024, 2048],
      "date": "2025-08-14T19:58:00Z"
    },
    {
      "cpu": "0.75%",
      "ram": "130.00 MB",
      "storage": "256.00 MB",
      "network": [2048, 4096],
      "date": "2025-08-14T20:00:00Z"
    }
  ]
}

Error Responses

status
string
Indicates whether the call was successful. error if not successful.
code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • FORBIDDEN: The user does not have permission to access the database.
  • DATABASE_NOT_FOUND: The specified database does not exist.
{
  "status": "error",
  "code": "UNAUTHORIZED"
}