Potential bug in text parser
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go
調査の方向性
参照されている行の近くにあるHELP行の処理を確認するため、expfmt/text_parse.goから始め、signal_infoとsignal_info_countのヒストグラムについて同じパース処理を再現します。_countサフィックスがp.currentMFと後続のparser errorにどのように影響するかを追跡します。両方のメトリクス名が区別されたまま保持され、入力がそのエラーなしでパースできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
We use the text parser within our application to scrape prometheus metrics and are facing an issue related to one described here: https://github.com/uber/cadence/issues/3120
cadence exposes two histogram metrics named signal_info and signal_info_count.
When parsing the HELP line for the signal_info_count the parser appears to strip the _count suffix and sets the p.currentMF property: https://github.com/prometheus/common/blob/f39dfa2b000545b3a763b844012958c275a62266/expfmt/text_parse.go#L688
This ends up setting the property to the earlier signal_info histogram leading to the parser error here:
https://github.com/prometheus/common/blob/f39dfa2b000545b3a763b844012958c275a62266/expfmt/text_parse.go#L485
- 主要言語
- Go
- スター
- 297
- フォーク
- 380
- 平均マージ
- 3日 15時間
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
prometheus/common のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
prometheus/common#1023 ·
メンテナーはふだん 2 日以内に返信
-
expfmt: OpenMetrics 1.0 output with a unit that is not a name suffix fails the whole scrape in Prometheus対応中かも @itsmeasadali が 40 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
prometheus/common#1005 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
prometheus/common#876 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Feature request: Add client_assertion field for oauth2 jwt-bearer grant type対応中かも @alliasgher が 218 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
prometheus/common#869 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
prometheus/common#858 ·
メンテナーはふだん 2 日以内に返信
prometheus/common の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
orion-belt-dev/orion-belt#181 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
kubesmarts/logic-operator#105 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
jakartaee/jakartablogs.ee#125 ·
-
story
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
patch-it-dev/patch-it-plugins#120 ·
メンテナーはふだん 1 日以内に返信
-
[Plugin] calendarオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
MUKE-coder/grit#228 ·