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

Async Querying

Open peterder72 opened this issue 2 years ago • 2 comments

I'm using this library for a project of mine where I need to gather 48h worth of timestamp data. While the library gets the job done, since all requests are made sequentially (prometheus_connect.py), it takes a ridiculous amount of time to fetch all data while keeping the server resources under-utilized.

A nice idea would be to introduce Async querying functionality to the library (e.g. async_get_metric_range_data) to keep the server busy and have better loading times.

If there are no objections, I can start with the implementation.

peterder72 avatar Jun 04 '22 10:06 peterder72

Thanks for the suggestion @peterder72, I think that's a great idea!

If there are no objections, I can start with the implementation.

Sure, feel free to get started with the implementation :)

/assign peterder72

chauhankaranraj avatar Jun 08 '22 20:06 chauhankaranraj

Hi there !

I wonder if there's news about this issue ?

Mathges avatar Jun 13 '23 13:06 Mathges