Repository navigation
Conversation
The detector keeps each quantile series' last N KLL windows, merges them as the baseline and computes the Kolmogorov-Smirnov distance of the current window from it (CDF = rank/count over both windows' percentiles). Above the threshold (0.1) the series has drifted; start and end are logged as events. exact_answers runs the same test on the exact values. Adds the drift scenario (one route's median triples at minute 10) and dashboard.
zzylol
force-pushed
the
feat/cardinality
branch
from
October 13, 2026 00:20
1044695 to
bc18c6d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 5 of the RFC 0001 stack: use case 2, distribution drift and baseline comparison.
The detector keeps each quantile series' last 5 KLL windows and merges them as the baseline. It computes the Kolmogorov–Smirnov distance of the current window from that baseline: the CDF is rank/count, compared at both windows' percentiles. Above the threshold (0.1) the series has drifted. Drift start and end are OTLP log events to Loki, and
asap_drift_ksandasap_driftare gauges.exact_answersruns the same test on the exact values. The scenario tripleshttp.route-3's median at minute 10.Result (56-core x86 server, 1-minute windows)
cargo fmt --check,cargo clippy --all-targets --features otap-engine,stream-benchmark -- -D warningsandcargo test --features otap-engine,stream-benchmarkpass at this PR's head.