---
search:
  tags:
    - Observability
    - GET
seo:
  description: >-
    Aggregates over a range: request counts by status class, outcomes,…
    Reference for the GET /v1/apps/{project}/metrics endpoint in the Sproutboat
    Cloud API.
sidebar:
  label: App metrics
  badge: GET
title: App metrics
type: openapi-operation
---
Aggregates over a range: request counts by status class, outcomes, latency histograms, wakes, CPU and memory.
One-minute points are kept 7 days, hourly points longer (`retention` in the answer says how long).
`totals.request_cpu` and each point's `request_cpu` (`{hist, p50_ms, p95_ms, p99_ms, sum_ms}`) are the CPU time of each request the runtime stamped one on, in the
buckets of `duration_bounds_ms`; they are absent where no request reported a CPU time (a host from before logs step 2, a quiet minute).
The per-bucket arrays have a fixed order (listed on each field); a new entry is only ever added at the end, so read them by position and ignore a longer array.

`GET /v1/apps/{project}/metrics`
