you have three options:

1) Issue the requests in parallel.  Provided the dataset size isn't too
huge, and your prometheus instance has enough cpu/memory to handle the
load, this could work

2) Use regexes on the vector names
{__name__=~"(calls|error|resp)_per_min, account=~"se|me|je", ...}

3) Some combination of the first 2

On Fri, May 14, 2021 at 4:11 AM gokul krish <[email protected]> wrote:

> Can someone suggest if this is possible or not.
>
> On Thursday, May 13, 2021 at 2:52:17 PM UTC-4 gokul krish wrote:
>
>> I want to run 100s of prometheus range vector queries with different
>> metric names as well as different labels and value. I want to fetch the
>> data for last one hour for all queries, at once
>>
>> For example:
>> calls_per_min{account="se", service="serv1"}[1h]
>> error_per_min{account="me", host="serv2"}[1h]
>> resp_per_min{account="je", others="serv3"}[1h]
>>
>> How can I combine these queries into one and get the result all at once?
>> Is there a way to combine queries along with the label filters into one and
>> fetch range vector for each of the queries at the same time
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/5c77c5db-86e3-484d-aa67-4b687bee84d5n%40googlegroups.com
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_prometheus-2Dusers_5c77c5db-2D86e3-2D484d-2Daa67-2D4b687bee84d5n-2540googlegroups.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=o2Rg2hCP31Es1DdrOYH75Q&r=j64P62uxP3fuCGhy7QIFzHc5tMo0hYAmg9RiTtOmVJM&m=rJiwWdNIourzu9Y-K3ACGCVebGIWrH44xyQoM6yjvpk&s=Mbel3zqlQoThXVi0qTHL-ncHw2F14Yo49cBoStZ_AOI&e=>
> .
>

-- 


This e-mail and all information in, attached to, or linked via this 
e-mail (together the ‘e-mail’) is confidential and may be legally 
privileged. It is intended solely for the intended addressee(s). Access to, 
or any onward transmission, of this e-mail by any other person is not 
authorised. If you are not the intended recipient, you are requested to 
immediately alert the sender of this e-mail and to immediately delete this 
e-mail. Any disclosure in any form of all or part of this e-mail, or of any 
the parties to it, including any copying, distribution or any action taken 
or omitted to be taken in reliance on it, is prohibited and may be 
unlawful. 




This e-mail is not, and is not intended to be, and should 
not be construed as being, (a) any offer, solicitation, or promotion of any 
kind; (b) the basis of any investment or other decision(s);  (c) any 
recommendation to buy, sell or transact in any manner any good(s), 
product(s) or service(s), nor engage in any investment(s) or other 
transaction(s) or activities;  or (d) the provision of, or related to, any 
advisory service(s) or activities, including regarding any investment, tax, 
legal, financial, accounting, consulting or any other related service(s).

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAJsAWL4E2Zp_8%3Dm7iT4M_22-dD-Jx-Pcs3gpMhBK9u9SKRGfYQ%40mail.gmail.com.

Reply via email to