prometheus-api-client-python icon indicating copy to clipboard operation
prometheus-api-client-python copied to clipboard

Async Version of PrometheusConnect

Open RiviaAzusa opened this issue 5 months ago • 4 comments

@4n4nd Hi~, I want to provide an async version of PrometheusConnect

Is your feature request related to a problem? Please describe.

Yes. The current implementation of PrometheusConnect uses the synchronous requests library, which can block the main thread and is not suitable for asynchronous applications (e.g., those using asyncio).

Describe the solution you'd like

I would like to propose an asynchronous version of PrometheusConnect, using an async HTTP client such as httpx or aiohttp. This would allow non-blocking communication with Prometheus servers and better integration with async Python applications.

Describe alternatives you've considered

Maybe can provide a async version named APrometheusConnect, user can free to choose one.

If you are open to this idea, I’d be happy to help implement and test it!

RiviaAzusa avatar May 23 '25 06:05 RiviaAzusa