missed evaluation in raw SQL alerts compare multi-window results to a single window threshold

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
clickhouse, typescript
領域
observability

調査の方向性

A reproducing test case is linked in PR #3577; start by reading that test and tracing the raw SQL Number tile alert evaluation path it exercises. Compare how the extended date range is handled for raw SQL alerts versus builder and time-series alerts. Done means a missed evaluation does not make the combined multi-window result breach a threshold intended for one window; verify with a regression test covering the stated example.

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

説明

bug Needs Feedback

What happened?

After a missed alert evaluation the next run's date range is extended back to the last evaluated window. Builder and time-series alerts split that range into one bucket per interval and compare each bucket to the threshold. Raw SQL Number tile alerts run their SQL once over the whole extended range and compare that one result to the threshold, which is meant for a single window.

Say you have 2 errors per window and your threshold is 3, a missed evaluation will result in an alert in the next eval even though the threshold was never actually breached

Steps to reproduce

Reproduces on play.hyperdx.io?
Reproduced on a test case in this PR: https://github.com/hyperdxio/hyperdx/pull/3577

How are you running HyperDX?

Where does it show up?

Debug info

(paste Help → Copy debug info here)

Logs

主要言語
TypeScript
スター
10.1k
フォーク
527
平均マージ
1日 20時間
マージ済み PR(30日)
186

環境構築

はじめの一歩

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

ClickHouse/ClickStack のほかの issue

ClickHouse/ClickStack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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