Its health over time, sampled about every 30 seconds. Per member
(members: each instance, read replica, pooler and KV endpoint), its
role, server, and series for cpu in cores, memoryMi,
diskUsedGi (only where the volume reports its own space),
connections and lagSeconds. For the whole database, transactions
(Postgres), queries (MySQL), poolerQueries and commands (KV) per
second, connections (primary, replicas, limit, and the pooler's
poolerActive, poolerWaiting, poolerServersActive,
poolerServersIdle and poolerMaxWaitSeconds), cacheHitRatio,
keyHitRatio, evictions per second, routing (KV reads per second
served by replicas or the primary, and fallbacks to the primary)
and storage (sizeBytes, memoryUsedBytes, maxmemoryBytes,
keys). Each series lines up with times, with null where nothing
was measured. A series is null when the database doesn't report it.
API key access: read.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
id*stringThe database's id.
range?string"1h", "24h" (the default), "7d" or "30d".
range, stepMs, times (milliseconds), engine, members and the database's series.
application/jsoncurl -X GET 'https://your-pyo.example.com/api/v1/databases/string/analytics'{}