Belemetry posts a metrics request with no data points when nothing was measured since the last delta export

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

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

@msynk đang làm issue này rồi.

Từ ngày 1/12/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

With delta temporality, Belemetry posts a metrics request that holds no data point when nothing was measured since the last export. The request carries only the resource and the meter's name (about 340 bytes to an OTLP/HTTP endpoint).

Where it's seen

  • A short-lived process (bit CLI): after the run's metrics are exported, the final flush at shutdown posts a second /v1/metrics request with no point in it.
  • An idle server: the same empty request goes out on every export interval.

Why

  • BelemetryPipeline.ExportMetricsAsync (src/Utilities/Belemetry/Bit.Belemetry/Pipeline/BelemetryPipeline.cs) exports whenever Collect() returns any instrument that has ever had a point (metrics.Count == 0 is its only check).
  • The OTLP exporter then leaves out the points with no new value in the interval (BelemetryOtlpMetricPoints.Select, which keeps only HasDeltaUpdate points, and non-zero deltas for sums). It still sends the request around them.

Expected: an export whose metrics have no point left to send after that selection is skipped, so no request goes out. The Azure Monitor exporter should be checked for the same case, since it filters points the same way (BelemetryAzureMonitorEnvelopeSerializer).

Version: Bit.Belemetry 11.0.0-pre-26.

Workaround: a metric processor that drops a metric with no updated point.

Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
5 giờ 25 phút
Pull request đã merge (30 ngày)
447

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 bitfoundation/bitplatform

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

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.