Skip to content

feat: add scenario/iteration labels to Prometheus metrics#153

Merged
be-next merged 2 commits intomainfrom
feat/scenario-iteration-metrics
Mar 8, 2026
Merged

feat: add scenario/iteration labels to Prometheus metrics#153
be-next merged 2 commits intomainfrom
feat/scenario-iteration-metrics

Conversation

@be-next
Copy link
Contributor

@be-next be-next commented Mar 8, 2026

Summary

  • Bump @bloom-perf/yaml-pptr to ^2.0.0 and migrate to the new options-object API with onPage callback
  • Add scenario and iteration labels to all HTTP-related Prometheus counters (browser_request, browser_request_finished, browser_request_failed, browser_response, browser_tab_started)
  • Add new browser_request_duration_seconds histogram for per-request latency tracking
  • Update type declarations, metrics tests, and browser tests to match the new API

Test plan

  • All 52 tests pass (npm test)
  • TypeScript build succeeds (npm run build)
  • Verify Prometheus /metrics output contains scenario and iteration labels in a live environment

🤖 Generated with Claude Code

be-next and others added 2 commits March 8, 2026 16:33
Migrate to @bloom-perf/yaml-pptr v2.0.0 options-object API and leverage
the new onPage callback with ScenarioContext to enrich all HTTP-related
Prometheus counters with scenario and iteration labels. Add a new
browser_request_duration_seconds histogram for per-request latency
tracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@be-next be-next merged commit c17b92a into main Mar 8, 2026
1 check passed
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