Skip to content

Conversation

@sambhav-jain-16
Copy link
Contributor

What?

Add CPU burst metrics to cAdvisor.

Why?

CPU burst is a cgroup v2 feature allowing containers to temporarily exceed CPU
quota using saved quota from previous periods. These metrucs will help monitor when containers exceed CPU quota using accumulated burst capacity for performance analysis and capacity planning.

How?

  • Add BurstsPeriods and BurstTime fields to CpuCFS struct
  • Populate from opencontainers/cgroups v0.0.6 BurstData in setCPUStats()
  • Expose two Prometheus metrics: container_cpu_cfs_burst_periods_total and
    container_cpu_cfs_burst_seconds_total
  • Add unit tests and testdata

@dims dims added this pull request to the merge queue Dec 18, 2025
Merged via the queue into google:master with commit e4d5281 Dec 18, 2025
8 checks passed
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