graphprotocol / graphprotocol/graph-node

[Feature] Differentiate prometheus metric for large vs non-large notifications

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

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

enhancement ops Stale
主要言語
Rust
スター
3.2k
フォーク
1.1k
平均マージ
4日 1時間
マージ済み PR(30日)
1

説明

Description

It would be great if there was a prometheus metric which captures the count of large notifications. We have a counter for all notifications, it would be great if either there was a separate counter for large notifications or a field which differentiates large vs small in the global counter.

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

Nope

Some information to help us out
  • Tick this box if you plan on implementing this feature yourself.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

store/postgres/src/notification_listener.rs のリンク先の 394-396 行にある既存の通知カウンターから始めます。そのエントリポイントで通知サイズがどのように利用可能かを追跡し、issue で要求されているメトリクス表現を選択します。Prometheus が大きい通知と大きくない通知を区別するカウントを公開すれば完了です。

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

評価

技術スタック
prometheus, rust
領域
observability
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

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

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