paritycheck

command
v0.9.720 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

paritycheck — FAZ 4 parite kanıt koşumu (v0.9.713).

"Grafana+Prometheus kalitesi" iddiasını SÖZLE değil ölçümle sınar. İki mod:

MOD A (CI, her yerde): Coremetry /api/metrics/query sonucu ↔ aynı
  pencerenin ClickHouse HAM-GERÇEK hesabı. Nokta sayısı, kafes
  hizası (ts % step == 0), değer farkı (mutlak+oransal), null
  konumları; rate ve histogram-quantile AYRI (en çok sapılan yer).
  Bir HATA bulursa exit 1 — CI regresyon kancası.

MOD B (--prom-url): aynı metrik+pencere+step için Prometheus HTTP
  API'siyle nokta nokta kıyas. Lokalde Prometheus yok; operatörün
  test ortamında (Prometheus 60s tutuyor) koşulur.

Sapma sınıfları (görev tanımı):

BEKLENEN  — farklı export/scrape aralığı, kafes farkı
KABUL     — kayan nokta (oransal ≤ 1e-9)
HATA      — yanlış agregasyon/hizalama/null işleme

Kullanım:

go run ./cmd/paritycheck -base http://localhost:8090 \
  -ch "kubectl exec -i -n coremetry chc-0 -- clickhouse-client --database coremetry" \
  -service coremetry-monolithic -metric process.runtime.go.goroutines \
  -report docs/charts/parity-report.md

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL