Managed Databases

Get metrics

Latest usage snapshot: CPU, memory, storage, connections, and replication lag. Metrics refresh about every 60 seconds; zero values mean not measured yet.

get/api/v1/databases/{database_id}/metrics

Path parameters

database_idstring required

Database ID (UUID) or short id (the database_id field, e.g. a1b2c3d4)

Response

Latest metrics snapshot

successboolean
cpu_used_millicoresinteger

CPU in use, millicores

cpu_capacity_millicoresinteger

CPU capacity, millicores

mem_used_bytesinteger

Memory in use, bytes

mem_capacity_bytesinteger

Memory capacity, bytes

storage_used_bytesinteger

Storage in use, bytes

storage_capacity_bytesinteger

Storage capacity, bytes

connections_activeinteger

Active client connections

connections_maxinteger

Connection limit

replication_lag_bytesinteger

Standby/replica lag in bytes (0 without HA or replicas)

archive_lag_bytesinteger

WAL archiving lag in bytes (PostgreSQL)

metrics_updated_atstring date-time

When this snapshot was taken

Changes