Skip to content

Async Version of PrometheusConnect #298

@RiviaAzusa

Description

@RiviaAzusa

@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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions