Remove metrics global registry
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- go, prometheus
调研方向
该 issue 未指定任何文件、测试或入口点。首先查看 controller-runtime 的 metrics 实现和链接的 Kubernetes KEP,然后定义注入 Prometheus registry 的范围,以及移除 global registry 需要哪些工作。
由索引模型根据 Issue 内容生成。
描述
I would like to suggest to remove the global registry as currently the controller-runtime global registry does not capture metrics registered onto prometheus.DefaultRegisterer. As a step forward and in line with the prosed KEP, the controller-runtime should be able to have the registry injected. (for a start with prometheus.DefaultRegisterer, with the long term goal of removing the global registry in the first place, I am open for suggestions on that.)
As per the proposal https://github.com/kubernetes/community/pull/2909:
Kubernetes also makes extensive use of a global metrics registry to register metrics to be exposed. Aside from general shortcomings of global variables, Kubernetes is seeing actual effects of this, causing a number of components to use sync.Once or other mechanisms to ensure to not panic, when registering metrics. Instead a metrics registry should be passed to each component in order to explicitly register metrics instead of through init methods or other global, non-obvious executions.
Lastly, this may be my own opinion, but introducing globals as a library hides its dependencies, therefore I think having the registry be injected makes the API more clear.
- 主要语言
- Go
- 星标
- 3k
- 派生
- 1.3k
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 48
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kubernetes-sigs/controller-runtime 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
kubernetes-sigs/controller-runtime#3704 ·
维护者通常 1 天内回复
-
lifecycle/rotten
难度 2/5 1-3 小时 新手友好度 78/100
kubernetes-sigs/controller-runtime#3537 · 4 条评论 ·
维护者通常 1 天内回复
-
Read-your-writes consistency is not applied to unstructured objects written with Update or Patch可能已有人在做 @7616e5a9c573ffb221843a498885ab0f 于 1 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 25/100
kubernetes-sigs/controller-runtime#3702 ·
维护者通常 1 天内回复
-
Client and DynamicRESTMapper keep a kind's old scope after its CRD is recreated with a different `scope`可能已有人在做 @AdamMagued 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
kubernetes-sigs/controller-runtime#3671 ·
维护者通常 1 天内回复
-
ReadYourWrite doesn't correctly deal with mutating requests removing the last finalizer可能已有人在做 @AdamMagued 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 28/100
kubernetes-sigs/controller-runtime#3670 · 1 个 reaction ·
维护者通常 1 天内回复
查看 kubernetes-sigs/controller-runtime 的全部 Issue
相似的 Issue
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothing可能已有人在做 @chaitanya0305 今天认领。 未关闭bug P2
难度 2/5 1-3 小时 新手友好度 62/100
BaaRai/ARTEX#652 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
compiler-explorer/compiler-explorer#9710 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 65/100
losisin/helm-values-schema-json#437 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复