Postgres

Get Postgres time-series metrics

Returns bucketed time-series metrics for a PostgreSQL service over the requested window (CPU, memory, disk, network, connections, cache hit ratio, throughput, transactions, wait events, lock waits, and more). Use this to chart or analyze how a service behaved over time.

get/v1/organizations/{organizationId}/postgres/{postgresId}/metrics

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the organization that owns the Postgres service.

postgresId, string uuid required
Example:f71df78e-ddad-82d0-8dfa-abbec741b82e

ID of the Postgres service.

Query parameters

from_date, string date-time required
Example:2026-03-26T00:00:00Z

Inclusive start of the time window (RFC 3339 date-time).

to_date, string date-time required
Example:2026-03-27T00:00:00Z

Exclusive end of the time window (RFC 3339 date-time).

bucket_size_seconds, integer

Time-series bucket size in seconds. When omitted, a bucket size is derived from the requested window. Requests are capped at 250 data points.

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, PostgresMetrics

Example response

{
  "status": 200
}

Changes

No recorded changes to this operation across all 35 revisions of this API.