Skip to Content

Metrics

A service's CPU, memory, response time, throughput, errors and traffic over the last 2 hours, 24 hours or 7 days.

Open a service on the canvas and click Metrics.

The Metrics tab: Avg CPU, Avg Memory, Avg Resp. Time and Avg Throughput, then the Resources and HTTP charts
The Metrics tab: Avg CPU, Avg Memory, Avg Resp. Time and Avg Throughput, then the Resources and HTTP charts

Pick the window

At the top, choose 2h, 24h or 7d. Every number and chart follows that window. Refresh reloads them.

The four cards give the average over the window: Avg CPU, Avg Memory, Avg Resp. Time and Avg Throughput.

The charts

Each chart shows its average and maximum over the window.

Resources ("CPU and memory over the selected window"):

  • Memory usage, the memory the service uses;
  • CPU usage, in mCPU (thousandths of a CPU).

HTTP ("Request rate and latency"):

  • Response time;
  • Throughput, in requests per second;
  • HTTP status codes, the share of requests answered with a 4xx or 5xx error, with the split by class (for example 2xx 100%);
  • Response traffic, the data sent back to visitors, in KB/s.

On 24h the time axis runs across the day; on 7d it shows dates.

The Metrics tab on 7d, with dates on the time axis
The Metrics tab on 7d, with dates on the time axis

Check performance and monitoring

  • Check performance asks Ask Agent why the service is slow ("Why is @nginx-w29b slow?"). The agent's answer appears in the Ask Agent panel.
  • Open monitoring opens the service in Coroot, the monitoring behind these charts, in a new tab.

Observability, in the dashboard's sidebar, opens Coroot for all the projects in your organization, in a new tab. See Coroot.

From the CLI

stackblaze metrics shows each instance's CPU and memory right now:

OK my-project/dev/ci-demo-0p8g
  ci-demo-0p8g-web-6447bc84f8-tqzpx  cpu: 1m  mem: 29Mi

With --since it shows the history over a window (30m, 1h, 24h or 7d, up to 7 days), all instances together, as a small chart with the value now, the average and the maximum:

OK my-project/dev/ci-demo-0p8g — last 1h
  cpu       ▁▃▃▅▇██▆▆      now 1m  avg 1m  max 1m
  memory    ▁▁██████▅      now 30.9MB  avg 34.9MB  max 43.4MB
  requests  ▁▂▃▄▅▇▇▇█      now 0.40/s  avg 0.25/s  max 0.40/s
  latency   █▆▆▄▃▃▂▁▁      now 0.2ms  avg 1.0ms  max 2.2ms

--watch refreshes it every 30 seconds (--interval changes that) until you press Ctrl-C. --json prints the raw series, with timestamps in milliseconds. See metrics.

stackblaze diagnose checks a service's settings, metrics, logs and add-ons together and says what looks wrong, or "No obvious platform-level issues detected." See diagnose.

On this page