Logs and metrics
Every app has logs, charts for CPU, memory, network and requests, and an uptime figure. You can read all of them in the dashboard and through the API.
Logs#
There are two kinds of logs:
- runtime: what your app writes to stdout and stderr.
- build: the output of the last build.
In the dashboard#
Open your app. On a wide screen the logs sit beside every tab. On a smaller screen they're a tab of their own, called logs.
Switch between runtime and build at the top of the panel. The dashboard shows the last 200 lines.
- Runtime logs refresh every 3 seconds while the page is open.
- Build logs refresh every 3 seconds while a build is running. Once it ends, you see the output of the last build.
If your app runs in high availability mode, a copy picker chooses which node's logs you see. See high availability.
With the API#
curl -H "Authorization: Bearer $CTRL_API_KEY" \
"https://api.getctrl.dev/v1/apps/my-api/logs?tail=200&type=runtime"
{ "lines": ["[2026-05-01 12:00:00] Server listening on :8080", "..."] }
Query parameters:
| Parameter | Default | Description |
|---|---|---|
tail |
100 |
Number of lines, at most 1000 |
type |
runtime | runtime or build |
node |
the app's own node | For a high availability app: the node of the copy you want |
A node that none of the app's copies runs on answers 404 with no copy of this app runs on <node>.
With the CLI#
ctrl logs my-api --tail 500
ctrl logs prints the last 100 lines by default, and at most 1000. Add --json for machine output.
The API serves a one-shot tail, so there's no live follow. ctrl logs --follow answers --follow is not supported: the API only serves a one-shot tail.
Metrics#
Open your app's overview tab to see the ctrl metrics panel. Pick a period with --period: 1h, 24h or 7d.
Each period is split into buckets:
| Period | One point every |
|---|---|
1h |
1 minute |
24h |
15 minutes |
7d |
1 hour |
The 1h view refreshes every 30 seconds. The other two load once.
Metrics appear once the app has been running for a minute. Until then the panel says No metrics for this period yet.
Hover a chart, or focus it and use the arrow keys, to read a single point. Under each chart you see the average over the period, and either the app's limit, the total, or the peak.
CPU#
CPU use as a percent of one vCPU, so an app on 2 vCPU can reach 200%. The chart shows it against your app's size.
Memory#
Memory in MB, against your app's memory size.
Network in and network out#
Traffic into and out of your app's VM, in bytes per second. Under each chart is the total moved over the period.
Requests#
Requests per second, counted by the CTRL proxy in front of your app. Each point also shows the share of 5xx responses. Under the chart is the total number of requests in the period.
Response time#
The mean time to first byte for the requests in each bucket, with the slowest one beside it. A bucket with no requests has no response time, so it isn't drawn.
Requests by country#
Where the period's requests came from, by the visitor's country. You see the top 10 countries, then the rest as other, with each one's count and share.
Countries come from Cloudflare. XX means the country is unknown and T1 means Tor.
If the request or country data can't be read, those charts are left out and the CPU, memory and network charts still show.
Metrics with the API#
curl -H "Authorization: Bearer $CTRL_API_KEY" \
"https://api.getctrl.dev/v1/apps/my-api/metrics?period=24h"
period is 1h, 24h or 7d, and defaults to 1h. Any other value answers 400 with invalid period, use 1h, 24h, or 7d.
{
"period": "1h",
"points": [
{
"timestamp": "2026-05-01T12:00:00.000Z",
"cpu": 12.5,
"memory_mb": 50.0,
"rx_bps": 1024,
"tx_bps": 512,
"requests": 600,
"rps": 10,
"s2xx": 570,
"s4xx": 24,
"s5xx": 6,
"avg_ms": 50,
"max_ms": 800
}
],
"totals": { "rx_bytes": 3686400, "tx_bytes": 1843200, "requests": 36000, "s2xx": 34200, "s4xx": 1440, "s5xx": 360 },
"countries": [
{ "code": "US", "requests": 21000 },
{ "code": "DE", "requests": 9000 },
{ "code": "other", "requests": 6000 }
]
}
cpuis a percent of one vCPU.memory_mbis in MB.rx_bpsandtx_bpsare bytes per second in and out.avg_msandmax_msare the mean and slowest time to first byte. They'renullin a bucket with no requests.- The request fields and
countriesare left out when they can't be read. - If the metrics can't be read at all, you get
"points": []and anerrorthat says why.
Uptime#
The ctrl uptime panel on the overview tab shows your app's uptime for this month and the last 30 days, with the downtime in each.
Uptime is measured from crash and out-of-memory alerts since the app was created. Outages that raised no alert aren't counted.
curl -H "Authorization: Bearer $CTRL_API_KEY" \
"https://api.getctrl.dev/v1/apps/my-api/uptime"
{
"this_month": { "uptime_pct": 99.95, "downtime_minutes": 21, "measured_minutes": 43200 },
"last_30_days": { "uptime_pct": 99.95, "downtime_minutes": 21, "measured_minutes": 43200 },
"source": "alerts"
}
uptime_pct is rounded down to two decimals, so any downtime keeps it under 100. It's null when there's no time to measure yet.