Prometheus Query Rest API for Multiple metrics

388 views
Skip to first unread message

var2...@gmail.com

unread,
Feb 28, 2018, 1:39:30 AM2/28/18
to Prometheus Developers
Is it possible to query "multiple metric with some kind of aggregate" from Prometheus?

Let say i want to do single api request to get both rate(http_requests_total[5m]), rate(memory_free[5m])
Will it be possible ?


I could find only four type of query( Instant queries, Range queries, Querying metadata, Querying label values ).

Brian Brazil

unread,
Feb 28, 2018, 1:56:18 AM2/28/18
to var2...@gmail.com, Prometheus Developers
On 28 February 2018 at 06:39, <var2...@gmail.com> wrote:
Is it possible to query "multiple metric with some kind of aggregate" from Prometheus?

Let say i want to do single api request to get both rate(http_requests_total[5m]), rate(memory_free[5m])
Will it be possible ?

No, you need to make two requests. It also doesn't make sense to take a rate on a gauge like memory_free.

Brian
 


I could find only four type of query( Instant queries, Range queries, Querying metadata, Querying label values ).

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/cd503923-ef16-46e7-87e5-4b4064a91d1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

var2...@gmail.com

unread,
Feb 28, 2018, 2:40:41 AM2/28/18
to Prometheus Developers

Sorry its my bad.
Can we expect a feature that support multiple query in single api !

Reply all
Reply to author
Forward
0 new messages