Skip to content

fix(collectors): use httpx2 in Prometheus collector - #1433

Merged
mergify[bot] merged 1 commit into
vllm-project:mainfrom
swethakommuri:fix/prometheus-httpx2
Oct 22, 2026
Merged

mergify[bot] merged 1 commit into
vllm-project:mainfrom
swethakommuri:fix/prometheus-httpx2

Conversation

@swethakommuri

@swethakommuri swethakommuri commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #1432. The Prometheus collector added in #1250 imports httpx, which is no longer a declared dependency after #1282 moved the codebase to httpx2. On a pip install of main, every guidellm run fails with ModuleNotFoundError: No module named 'httpx'.

Related Issues

Details

  • src/guidellm/collectors/prometheus.py: httpx → httpx2 (AsyncClient, AsyncBaseTransport, HTTPError, InvalidURL).
  • tests/unit/collectors/test_prometheus.py: httpx → httpx2 (Request, Response, MockTransport, ConnectError).

httpx2 exports all of these with the same API, and InvalidURL is still a separate exception from HTTPError, so the except clause behaves the same. No functional change.

Test Plan

In a venv with httpx uninstalled (pip show httpx → not found), WSL2 / Python 3.14.4:

  • python -m pytest tests/unit/collectors/test_prometheus.py: 20 passed
  • guidellm run against guidellm mock-server with synthetic data (concurrent@10, 20 requests): 20/20 completed, 0 errored. Before this change, the same command failed at import with ModuleNotFoundError: No module named 'httpx'.

Use of AI

The change was drafted with Claude's help. I applied it and ran the tests above locally myself.


  • "I certify that all code in this PR is my own, except as noted below."
  • Includes code generated or substantially modified by an AI agent
  • Includes tests generated or substantially modified by an AI agent

Assisted-by: Claude
Signed-off-by: Swetha Kommuri swethakommuri10@gmail.com

@swethakommuri

Copy link
Copy Markdown
Contributor Author

@dbutenhof @sjmonson small fix for #1432 (pip installs of main currently fail at import).

Assisted-by: Claude
Signed-off-by: Swetha Kommuri <swethakommuri10@gmail.com>
@mergify

mergify Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Received a single approval. Will automatically queue for merge once two maintainers approve, all change requests are resolved, and DCO passes.

@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 35 minutes 35 seconds in the queue, including 35 minutes 11 seconds running CI.

Required conditions to merge
  • github-review-approved [🛡 GitHub repository ruleset rule Merge Requirements]
  • any of [🛡 GitHub repository ruleset rule Merge Requirements]:
    • check-success = @github-actions/quality (3.10) / quality-checks
    • check-neutral = @github-actions/quality (3.10) / quality-checks
    • check-skipped = @github-actions/quality (3.10) / quality-checks
  • any of [🛡 GitHub repository ruleset rule Merge Requirements]:
    • check-success = @github-actions/tests (3.10) / e2e-tests
    • check-neutral = @github-actions/tests (3.10) / e2e-tests
    • check-skipped = @github-actions/tests (3.10) / e2e-tests
  • any of [🛡 GitHub repository ruleset rule Merge Requirements]:
    • check-success = @github-actions/tests (3.10) / integration-tests
    • check-neutral = @github-actions/tests (3.10) / integration-tests
    • check-skipped = @github-actions/tests (3.10) / integration-tests
  • any of [🛡 GitHub repository ruleset rule Merge Requirements]:
    • check-success = @github-actions/tests (3.10) / unit-tests
    • check-neutral = @github-actions/tests (3.10) / unit-tests
    • check-skipped = @github-actions/tests (3.10) / unit-tests
  • any of [🛡 GitHub repository ruleset rule Merge Requirements]:
    • check-skipped = @github-actions/update-description
    • check-neutral = @github-actions/update-description
    • check-success = @github-actions/update-description

@mergify mergify Bot added the queued label Oct 22, 2026
@mergify
mergify Bot merged commit e81cf35 into vllm-project:main Oct 22, 2026
10 of 11 checks passed
@mergify mergify Bot removed the queued label Oct 22, 2026
@swethakommuri
swethakommuri deleted the fix/prometheus-httpx2 branch October 22, 2026 23:47
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.

[Bug]: guidellm run fails on pip install of main — ModuleNotFoundError: No module named 'httpx' (regression from #1250)

3 participants