prometheus / prometheus/client_python
Bug in remove function
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 4.4k
- フォーク
- 876
- 平均マージ
- 8日 4時間
- マージ済み PR(30日)
- 1
説明
The remove function failed if the label aren't order in the alphabetical order.
If they aren't, we have a KeyError.
For exemple that failed :
observ_thresholds = Gauge('thresholds', 'Seuil', ['host', 'domaine'])
observ_thresholds.labels('myserveur','prod').set(5)
observ_thresholds.remove('myserveur','prod')
For exemple that is good :
observ_thresholds = Gauge('thresholds', 'Seuil', ['host', 'perimeter'])
observ_thresholds.labels('myserveur','prod').set(5)
observ_thresholds.remove('myserveur','prod')
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Python クライアント内の remove 関数を特定し、label 名を異なる順序で使用して Gauge の例で失敗を再現します。KeyError が発生せずにラベル付きの値を削除でき、報告された label が削除されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- observability
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100