Skip to content

compliance: add OpenMetrics 1.0 vs 2.0 e2e scrape benchmark - #6

Closed
bwplotka wants to merge 1 commit into
mainfrom
benchmark_openmetrics_version_scrape
Closed

bwplotka wants to merge 1 commit into
mainfrom
benchmark_openmetrics_version_scrape

Conversation

@bwplotka

@bwplotka bwplotka commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Adds a //go:build demo e2e scrape benchmark in compliance/openmetrics_scrape_bench_test.go using efficientgo/e2e and e2emon on top of prometheus#19880.

The benchmark spins up side-by-side prom-om1 (OpenMetricsText1.0.0) and prom-om2 (OpenMetricsText2.0.0) instances scraping:

  • 25 client_golang targets (1,000 metric series per target: 400 counters, 400 gauges, 100 classic histograms, 100 summaries, with exemplars and created timestamps).
  • 25 virtual targets against isolated client_java 1.9.0 Docker containers (europe-west3-docker.pkg.dev/macro-mile-203600/test/openmetrics2-java-demo:1.9.0).

Run from compliance/:

BENCH_DURATION=30s go test -v -tags=demo -timeout 10m -run '^TestBenchmarkOpenMetricsScrape$' .
BENCH_NHCB=true BENCH_DURATION=30s go test -v -tags=demo -timeout 10m -run '^TestBenchmarkOpenMetricsScrape$' .
NONE

@bwplotka
bwplotka force-pushed the benchmark_openmetrics_version_scrape branch from 3d24fae to a32b571 Compare October 1, 2026 23:54
Signed-off-by: Bartek Plotka <bwplotka@google.com>
@bwplotka
bwplotka force-pushed the benchmark_openmetrics_version_scrape branch from a32b571 to a32a746 Compare October 2, 2026 14:41
@bwplotka
bwplotka changed the base branch from bwplotka/om2-nhcb-direct to main October 2, 2026 14:42
@bwplotka bwplotka closed this Oct 3, 2026
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