Does Prometheus support pagination of the results?

68 views
Skip to first unread message

Hello World

unread,
Apr 28, 2021, 6:43:47 AM4/28/21
to Prometheus Users
Hi,

Is there a way to paginate the results coming from Prometheus server?
or can we form the paginated queries something like (offset=2, limit=20 up{svc_name="mysvc"})

Thanks.

Julien Pivotto

unread,
Apr 28, 2021, 6:46:01 AM4/28/21
to Hello World, Prometheus Users
It is not possible at the moment. Given how dynamic Prometheus is, this
would be quite a challenge to get consistent results with pagination,
because the data behind would change between two API calls.


>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fa529a3e-42a5-4aa1-ae4b-5ec87e166ae0n%40googlegroups.com.


--
Julien Pivotto
@roidelapluie

Hello World

unread,
May 10, 2021, 2:57:16 AM5/10/21
to Prometheus Users
Thanks for the clarification, Julien.

Bartłomiej Płotka

unread,
May 10, 2021, 4:59:14 AM5/10/21
to Hello World, Prometheus Users
Yet, there is an open question if any streaming API would be useful (e.g similar to what we have with streaming remote read now).

Kind Regards,
Bartek Płotka (@bwplotka)


Reply all
Reply to author
Forward
0 new messages