perfdash: implement Phase 2 Thanos TSDB block writer and query backend #4388
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.43) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 184 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.312
Real PR Conversation Timeline
1 comments
"Review active on #4388"
general
weight: 0.35
Jefftree
Replaces PerfDash's in-memory metric store with local Thanos TSDB blocks and serves the existing PerfDash HTTP APIs from Thanos Query, cutting steady-state memory usage from ~40 GiB to ~2 GiB while preparing the backend for Grafana dashboards.
Main design decisions:
thanos.builds) so each sync only downloads new builds from GCS. After syncing a job, its blocks are compacted into a single TSDB block per job and any builds older than the configured build count (default 100) are pruned.perfdash_metricat each build'sstarted.jsontimestamp with labels forjob,prow_job,category,metric,build,percentile, andunit(encoding empty label values and non-PromQL label keys), allowing/jobnames,/metriccategorynames,/metricnames, and/buildsdatato return identical JSON responses for the existing UI.thanos-storeandthanos-queryas sidecar containers in the PerfDash pod sharing anemptyDirvolume at/prometheuswhen--thanos-mode=trueis enabled.Part of #4489