Remove metrics global registry
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- go, prometheus
調査の方向性
この issue では、ファイル、テスト、エントリーポイントが指定されていません。まず controller-runtime のメトリクス実装とリンク先の Kubernetes KEP を確認し、そのうえで Prometheus レジストリを注入する範囲と、グローバルレジストリを削除するには何が必要かを定義してください。
索引モデルが 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時間
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
メンテナーはふだん 1 日以内に返信
kubernetes-sigs/controller-runtime の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
expr-lang/expr#1037 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
provider-key submission
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
opentofu/registry#6740 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nightgauge/nightgauge#3713 ·
メンテナーはふだん 1 日以内に返信
-
fix: restore GitHub issue templates and check their license headers対応中かも @slievrly が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信