Remove metrics global registry
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go, prometheus
- Lĩnh vực
- observability
Hướng nghiên cứu
Issue này không nêu tên tệp, bài kiểm thử hoặc điểm vào nào. Hãy bắt đầu bằng việc xem xét triển khai metrics của controller-runtime và Kubernetes KEP được liên kết, sau đó xác định phạm vi cần thiết để inject một Prometheus registry và việc loại bỏ global registry sẽ yêu cầu những gì.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 3k
- Fork
- 1.3k
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 48
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kubernetes-sigs/controller-runtime
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kubernetes-sigs/controller-runtime#3704 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lifecycle/rotten
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kubernetes-sigs/controller-runtime#3537 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Read-your-writes consistency is not applied to unstructured objects written with Update or PatchCó thể đã có người làm @7616e5a9c573ffb221843a498885ab0f đã nhận 1 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
kubernetes-sigs/controller-runtime#3702 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Client and DynamicRESTMapper keep a kind's old scope after its CRD is recreated with a different `scope`Có thể đã có người làm @AdamMagued đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
kubernetes-sigs/controller-runtime#3671 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ReadYourWrite doesn't correctly deal with mutating requests removing the last finalizerCó thể đã có người làm @AdamMagued đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
kubernetes-sigs/controller-runtime#3670 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kubernetes-sigs/controller-runtime
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
OneBusAway/watchdog#470 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: session
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
charmbracelet/crush#4484 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Resource]: HearthĐang mởresource-submission validation-passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
hesreallyhim/awesome-claude-code#3713 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
expr-lang/expr#1037 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Provider Key: Sauberr/neckrezĐang mởprovider-key submission
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
opentofu/registry#6740 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày