feat(observability): metrics end-to-end (gateway + UI panel)#5380
Draft
Ma77Ball wants to merge 76 commits into
Draft
feat(observability): metrics end-to-end (gateway + UI panel)#5380Ma77Ball wants to merge 76 commits into
Ma77Ball wants to merge 76 commits into
Conversation
…, SDK bootstrap (default-off) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…s panel Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…nt scope, health, routing) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ca/eBPF profiling Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…tracing primitives Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…UI metrics panel (ECharts) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5380 +/- ##
============================================
+ Coverage 52.87% 53.20% +0.32%
- Complexity 2509 2663 +154
============================================
Files 1073 1118 +45
Lines 41382 43731 +2349
Branches 4444 4834 +390
============================================
+ Hits 21882 23268 +1386
- Misses 18214 19078 +864
- Partials 1286 1385 +99
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…e and shell (pr4)
…e and shell (pr4)
…teway and panel (pr6)
Contributor
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🔴 | bs=10 sw=10 sl=64 | 378 | 0.23 | 26,974/36,021/36,021 us | 🔴 +32.5% / 🔴 +13.4% |
| 🟢 | bs=100 sw=10 sl=64 | 813 | 0.496 | 120,431/145,230/145,230 us | 🟢 -7.8% / 🔴 -8.9% |
| ⚪ | bs=1000 sw=10 sl=64 | 933 | 0.57 | 1,074,293/1,111,252/1,111,252 us | ⚪ within ±5% / 🔴 -10.4% |
Baseline details
Latest main b8859b4 from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 378 tuples/sec | 441 tuples/sec | 410.82 tuples/sec | -14.3% | -8.0% |
| bs=10 sw=10 sl=64 | MB/s | 0.23 MB/s | 0.269 MB/s | 0.251 MB/s | -14.5% | -8.3% |
| bs=10 sw=10 sl=64 | p50 | 26,974 us | 20,357 us | 23,785 us | +32.5% | +13.4% |
| bs=10 sw=10 sl=64 | p95 | 36,021 us | 32,326 us | 34,980 us | +11.4% | +3.0% |
| bs=10 sw=10 sl=64 | p99 | 36,021 us | 32,326 us | 34,980 us | +11.4% | +3.0% |
| bs=100 sw=10 sl=64 | throughput | 813 tuples/sec | 823 tuples/sec | 891.94 tuples/sec | -1.2% | -8.9% |
| bs=100 sw=10 sl=64 | MB/s | 0.496 MB/s | 0.502 MB/s | 0.544 MB/s | -1.2% | -8.9% |
| bs=100 sw=10 sl=64 | p50 | 120,431 us | 117,281 us | 112,277 us | +2.7% | +7.3% |
| bs=100 sw=10 sl=64 | p95 | 145,230 us | 157,595 us | 139,802 us | -7.8% | +3.9% |
| bs=100 sw=10 sl=64 | p99 | 145,230 us | 157,595 us | 139,802 us | -7.8% | +3.9% |
| bs=1000 sw=10 sl=64 | throughput | 933 tuples/sec | 946 tuples/sec | 1,041 tuples/sec | -1.4% | -10.4% |
| bs=1000 sw=10 sl=64 | MB/s | 0.57 MB/s | 0.577 MB/s | 0.635 MB/s | -1.2% | -10.3% |
| bs=1000 sw=10 sl=64 | p50 | 1,074,293 us | 1,053,290 us | 972,714 us | +2.0% | +10.4% |
| bs=1000 sw=10 sl=64 | p95 | 1,111,252 us | 1,100,641 us | 1,023,057 us | +1.0% | +8.6% |
| bs=1000 sw=10 sl=64 | p99 | 1,111,252 us | 1,100,641 us | 1,023,057 us | +1.0% | +8.6% |
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,529.78,200,128000,378,0.230,26974.38,36021.43,36021.43
1,100,10,64,20,2460.35,2000,1280000,813,0.496,120430.60,145230.19,145230.19
2,1000,10,64,20,21434.13,20000,12800000,933,0.570,1074293.48,1111251.73,1111251.73… obs/pr2/backend-emit
…o obs/pr3/deployment
…obs/pr4/gateway-core
…and fixed comment on button reference
ResponseParsersSpec (fresh-build compile failure)
… obs/pr2/backend-emit
…o obs/pr3/deployment
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.
What changes were proposed in this PR?
Workflow metrics through the gateway plus an ECharts-based UI panel.
Backend:
parseMetrics.MetricsResourceserving a closed allowlist of named queries (throughput, outcome rates, and duration percentiles), enforced on both the gateway and the client.Frontend:
Any related issues, documentation, or discussions?
Closes: #5372
Part of #4070. Stacked on #5379.
How was this PR tested?
sbt scalafmtCheckAllpasses.prettier-eslintandeslintpass.Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF