Get time-series metrics
Authorization
A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
Service Token Accesses read_branch, delete_branch, create_branch, connect_production_branch, connect_branch
OAuth Scopes
| Resource | Scopes |
|---|---|
| Organization | read_branches |
| Database | read_branches |
| Branch | read_branch |
Path parameters
Organization name slug from list_organizations. Example: acme.
Database name slug from list_databases. Example: app-db.
Branch name from list_branches. Example: main.
Query parameters
Metric names to retrieve. Pass as metrics[]=name (repeat for multiple), metrics=name, or a comma-separated list (metrics=name,other). Time range is period (for example 15m) or ISO 8601 from/to.
Named time period to retrieve. Defaults to 12h.
Start of a custom time range as an ISO 8601 timestamp
End of a custom time range as an ISO 8601 timestamp
Number of data points to return
Filter by tablet type
Filter by keyspace
Filter by shard
Filter by Postgres role
Filter by container
Filter by pod
Filter by pods
Filter by query pattern IDs
Filter by query fingerprint
Filter by traffic budget ID
Filter by traffic rule ID
Filter by search terms
Response
Returns time-series metrics