Repository navigation
Conversation
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.
Adds a persistent OTAP KLL demo that merges tumbling panes into rolling quantiles and continuously exports p50/p99 to Prometheus, with a provisioned Grafana dashboard.
Before → after
End-to-end example
From the repository root:
docker compose -f demos/kll-grafana/compose.yaml up -d cargo build --manifest-path asap-precompute-rs/Cargo.toml \ --features otap-engine --bin asap-kll-stream-demo # Run for 30 seconds: 6-second lookback, 1-second panes. ./asap-precompute-rs/target/debug/asap-kll-stream-demo \ --window-seconds 6 --slide-seconds 1 --run-seconds 30Open http://localhost:3000/d/asap-kll. Grafana refreshes every five seconds and queries:
Omit
--run-secondsfor continuous operation. Defaults: 60-second lookback and five-second panes.Live screenshot using six-second rolling windows and one-second panes.
Validation
Verified repeated writes, stable series, changing rolling values, and matching Prometheus/Grafana queries. Library, window, runtime, and binary tests passed, along with formatting and Clippy. The finite demo export still returns p50=100 and p99=198; Ctrl+C and export failures were checked.
Limits: pane-aligned ranges, approximate KLL quantiles, in-memory retention, and exactly-once complete upstream panes. See the window guide for configuration and semantics.