Skip to content

docs(magic-containers): clarify CPU usage metric units - #372

Open
zvonegit wants to merge 1 commit into
mainfrom
claude/slack-session-favglo
Open

docs(magic-containers): clarify CPU usage metric units#372
zvonegit wants to merge 1 commit into
mainfrom
claude/slack-session-favglo

Conversation

@zvonegit

Copy link
Copy Markdown
Contributor

What & why

A customer reported that the Magic Containers CPU metric (averageCPU from GET /mc/apps/{appId}/overview, also shown on the dashboard Statistics tab) looked overstated by ~10–50× compared to CPU usage measured from inside their containers.

This is not a bug — the metric is reported relative to the application's CPU limit (8 CPUs on the dynamic runtime), not as absolute cores, so it reads roughly 12.5× higher than raw core usage. The unit was previously undocumented, which made it easy to misread as cores. This PR documents the actual semantics.

Changes

  • magic-containers/monitoring.mdx — Expanded the CPU usage metric description to explain it is measured relative to the 8-CPU limit (100% = full limit, 12.5% = one core) and how to convert a reading to absolute cores. Clarified that memory usage is reported as an absolute value. Added a <Note> explaining that CPU usage is scaled to the CPU limit (so it looks ~12.5× higher than measured cores) and that billing is calculated separately from actual CPU time (CPU-seconds) and is therefore unaffected by this scaling.
  • api-reference/magic-containers/overview.mdx — Added a Metric units section noting that CPU fields (e.g. averageCPU) are relative to the CPU limit while RAM fields (e.g. averageRAM) are absolute, with a link to the Monitoring page.

Context

Reported via Slack: https://bunnycdn.slack.com/archives/C02R1SM8L12/p1785340101788189?thread_ts=1785260041.166399&cid=C02R1SM8L12


Generated by Claude Code

Document that the Magic Containers CPU usage metric (exposed via the
averageCPU API field) is reported relative to the app's CPU limit
(8 CPUs on the dynamic runtime), not as absolute cores, so it reads
roughly 12.5x higher than measured core usage. Clarify that memory
usage is absolute and that billing is computed separately from actual
CPU time, so it is unaffected by this scaling.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WN6MhYRwbNZiifuUFxV3YH
@mintlify

mintlify Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
bunny 🟢 Ready View Preview Jul 29, 2026, 3:56 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@zvonegit
zvonegit requested a review from joao-at-bunny July 30, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants