Skip to content

feat(tools): measure Prometheus ingest cost from a skip_querying run - #550

Merged
milindsrivastava1997 merged 2 commits into
mainfrom
feat/compare-costs-ingest-only-baseline
Aug 20, 2026
Merged

feat(tools): measure Prometheus ingest cost from a skip_querying run#550
milindsrivastava1997 merged 2 commits into
mainfrom
feat/compare-costs-ingest-only-baseline

Conversation

@milindsrivastava1997

@milindsrivastava1997 milindsrivastava1997 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • compare_costs.py's baseline (Prometheus) Query CPU was computed by subtracting the 5th percentile of the same run's CPU series as a proxy for ingest cost — an arbitrary heuristic.
  • Adds --ingest_only_experiment_name: point it at a skip_querying (ingest-only, no queries executed) experiment run, and the baseline mode's Query CPU instead subtracts the median Prometheus CPU% directly measured from that run.
  • Falls back to the old 5th-percentile heuristic when the flag isn't passed, so existing usage is unaffected.

milindsrivastava1997 and others added 2 commits August 19, 2026 15:45
Add --ingest_only_experiment_name to compare_costs.py so the baseline
mode's Query CPU can subtract a directly-measured ingest baseline
(median Prometheus CPU% from a skip_querying, no-queries-executed run)
instead of the 5th-percentile-of-this-run heuristic.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…t heuristic

Print a stderr warning when --ingest_only_experiment_name isn't given and
compare_costs.py falls back to the 5th-percentile-of-this-run heuristic for
Prometheus ingest cost, so it's obvious the Query CPU numbers are a guess
rather than a measured baseline.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@milindsrivastava1997
milindsrivastava1997 merged commit a4e0017 into main Aug 20, 2026
10 checks passed
@milindsrivastava1997
milindsrivastava1997 deleted the feat/compare-costs-ingest-only-baseline branch August 20, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant