Query Project
metrics
Query Project
Query bounded project runtime and application metric series through the Korve control plane.
POST
Query Project
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The organization's id (UUID) or slug — either form is accepted.
The project's id (UUID) or slug — either form is accepted.
Query Parameters
Environment slug to scope this operation to. Defaults to "production". An environment that does not exist on the project answers 404. Metrics are isolated to the addressed environment.
Pattern:
^[a-z][a-z0-9-]{0,38}$Body
application/json
One to 10 metric names.
Required array length:
1 - 10 elementsAvailable options:
cpu.percent, memory.used_bytes, memory.limit_bytes, disk.used_bytes, disk.limit_bytes, disk.read_iops, disk.write_iops, network.receive_bytes, network.transmit_bytes, runtime.restarts, runtime.uptime_seconds, http.requests, http.errors, database.connections, database.pool_waiting, database.queries_per_second, database.query_latency_avg_ms, database.query_latency_p50_ms, database.query_latency_p90_ms, database.query_latency_p95_ms, database.query_latency_p99_ms, queue.backlog_messages, queue.oldest_message_age_seconds, cron.failures Bucket width. Raw one-minute data is retained for 30 days; hourly aggregates for 13 months.
Available options:
avg, min, max, sum, p50, p95, p99 Available options:
instance, process, route, status, queue, cron