-
-
Notifications
You must be signed in to change notification settings - Fork 85
Description
@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!