refactor(config): rename cpu.meters to cpu.preferredMeters#2471
refactor(config): rename cpu.meters to cpu.preferredMeters#2471nikimanoledaki wants to merge 1 commit into
cpu.meters to cpu.preferredMeters#2471Conversation
Addresses feedback on sustainable-computing-io#2467: a bare "meters" list doesn't convey the ordered preference semantics. `fallbackChain` (suggested in the thread) would mislead since `CreateCPUMeter` selects once at startup with no runtime failover. `preferredMeters` matches the kube-apiserver `preferredAddressTypes` pattern: ordered preference list, first viable wins. Renames the YAML key, struct field, validation error message, the two deprecation warnings, and every sample config. No alias needed: `cpu.meters` is not present in any tagged release. Signed-off-by: nikimanoledaki <niki.manoledaki@grafana.com>
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2471 +/- ##
=======================================
Coverage 91.97% 91.97%
=======================================
Files 56 56
Lines 5945 5945
=======================================
Hits 5468 5468
Misses 340 340
Partials 137 137 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
📊 Profiling reports are ready to be viewed
💻 CPU Comparison with base Kepler💾 Memory Comparison with base Kepler (Inuse)💾 Memory Comparison with base Kepler (Alloc)⬇️ Download the Profiling artifacts from the Actions Summary page 📦 Artifact name: 🔧 Or use GitHub CLI to download artifacts: gh run download 25748305257 -n profile-artifacts-2471 |
|
@nikimanoledaki Can you also address this? #2471 (comment) 🙏 |
Follow up to #2468. Addresses some of the feedback on #2467.
Why
cpu.meters: ["rapl", "hwmon"]doesn't show clearly that it is an ordered preference with a priority & fallback mechanism.However this is not exactly a
fallbackChainsinceCreateCPUMeterselects once at startup. There is no runtime failover.Opting for
preferredMeterssince it matches the kube-apiserverpreferredAddressTypespattern of having an ordered preference list with the first viable option being selected.What
Rename config field
cpu.meterstocpu.preferredMetersand update all references.