Improve logs panel compatibility with configured log level field

オープン
#158 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
observability

調査の方向性

まず、設定された logLevelField に対する Grafana のログパネルの処理を追跡し、Elasticsearch データソースの回避策を含むコミット f4a752e を確認します。これを、Explore で言及されている既存のログボリュームパネルのカスタマイズと比較します。完了条件は、エントリがログの重大度にレベルフィールドではないフィールドを使用し、別のレベルフィールドを隠さないこと、そして選択した動作が適切なテストでカバーされていることです。

索引モデルが issue の本文から書いたものです。

説明

The Grafana logs panel determines the log level from a level field, or falls back to looking for keywords in the message.
When using a different field name for the log level, all entries appear grey.

The Elasticsearch datasource works around this by renaming the logLevelField to level, which was removed here in f4a752e.
I understand why it was removed, it doesn't really seem like the best way of handling this. Especially when there could be another field named level that gets obscured because of this.

To make the logs panel work with the logLevelField option, would you consider making this behaviour opt-in?

Alternatively, it could probably also be done client-side. There should already be something handling this for the log volume panel in the explore tab, I'm not sure if the logs panel can be customized in the same way.

I'd be happy to create a PR for this, just let me know which option you'd prefer.

主要言語
TypeScript
スター
76
フォーク
45
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quickwit-oss/quickwit-datasource のほかの issue

quickwit-oss/quickwit-datasource の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。