Skip to content

Add CPU energy performance preference metrics - #3869

Open
sairex53 wants to merge 1 commit into
prometheus:masterfrom
sairex53:codex/issue-3820-cpu-epp
Open

sairex53 wants to merge 1 commit into
prometheus:masterfrom
sairex53:codex/issue-3820-cpu-epp

Conversation

@sairex53

@sairex53 sairex53 commented Oct 24, 2026 •

Copy link
Copy Markdown

@SuperQ @discordianfish

Expose the current CPU Energy Performance Preference through the cpufreq collector, using a one-hot gauge with cpu and preference labels like node_cpu_scaling_governor. The collector reads the current and available preferences from sysfs and skips CPUs without EPP support.

Fixes #3820.

Testing

  • go test ./collector -run '^TestCPUFreqMetrics$' -count=1 - passed
  • go vet ./collector - passed
  • git diff --check - passed
  • go test ./collector -count=1 - fails in TestDiskStats because the expected diskstats fixture output does not match the metrics produced in this environment.

Signed-off-by: Eduard Zateev <hackerowskiy@gmail.com>
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.

Expose the CPU EPP similarl to governor

1 participant