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

Đang mở
#3,578 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
clickhouse, typescript
Lĩnh vực
observability

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
10.1k
Fork
527
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
186

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ClickHouse/ClickStack

Tất cả issue của ClickHouse/ClickStack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.