feat: krane+ctrl metrics struct DI, per-service registries, cleanup#5663
feat: krane+ctrl metrics struct DI, per-service registries, cleanup#5663Flo4604 wants to merge 1 commit into04-08-sentinel_metrics_struct_difrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
7bba4b4 to
12da9bb
Compare
2b60c6a to
bac0e94
Compare
bac0e94 to
4b5107b
Compare
12da9bb to
5991772
Compare
4b5107b to
f213b22
Compare
5991772 to
eebfced
Compare
eebfced to
58fce23
Compare
f213b22 to
6519268
Compare
58fce23 to
04b841d
Compare
6519268 to
61be2bb
Compare
Convert krane (9 vars) and ctrl (4 vars) metrics to Metrics struct DI. Wire up per-service prometheus.NewRegistry() in all 6 services: - frontline, sentinel, krane, ctrl/api, ctrl/worker, api Each service creates its own registry, registers only the metrics it uses via NewMetrics(reg), and serves via NewWithRegistry(reg). Remove deprecated New() and Serve() from pkg/prometheus/server.go. This eliminates ~24k permanently-zero series across the fleet.
04b841d to
b8d1579
Compare
61be2bb to
070b9fb
Compare

What does this PR do?
Fixes # (issue)
If there is not an issue for this, please create one first. This is used to tracking purposes and also helps us understand why this PR exists
Type of change
How should this be tested?
Checklist
Required
pnpm buildpnpm fmtmake fmton/godirectoryconsole.logsgit pull origin mainAppreciated