expfmt: Consider allowing empty MetricFamilies
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
expfmt から始め、text_parse.go のテキスト形式パーサーと、protobuf のエンコードおよびデコードの経路を確認します。現在、空の MetricFamilies がどのように拒否されているかを追跡し、続いてデコード済み protobuf の利用側が適切に処理できるかを確認します。テキスト形式と protobuf 形式の両方で空のファミリーが一貫して受け入れられ、既存の動作を壊していなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Currently, a MetricFamily with no Metrics is invalid (i.e. it will never be created by encoders, and it will yield an error upon decoding).
As it turns out, client libraries that are ignorant of the protobuf exchange format are making use of empty metric families as represented in the text format, i.e.
# HELP blah some help
# TYPE blah gauge
# HELP blub another metric
# ...
This has never caused any trouble because the only entry point of the text format into the Prometheus universe is the text-format parser, which kicks out those metric families here.
@brian-brazil thinks empty metric families is something we should allow in general. That would require to change all code encoding and decoding protobuf, including the text-format parser. (Ideally, all that code is only in expfmt but there might be legacy.) Also, consumers of decoded protobuf have to be checked to deal gracefully with empty MetricFamilies, as they were so far guaranteed to not appear.
- 主要言語
- 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 ·