Re: [prometheus-users] 2 operator conditions in single query

2021-02-10 Thread Sagar
Hi Ben,

Thank you , it worked .

Thanks

On Tue, Feb 9, 2021 at 3:33 PM Ben Kochie  wrote:

> mem_used_percent{host="hostname"} >= 70 and
> mem_used_percent{host="hostname"} <= 80
>
> On Tue, Feb 9, 2021 at 1:56 AM sunils...@gmail.com 
> wrote:
>
>> I have to query servers with memory utilization between 70-80  % .
>> I can query them separately but how can I combine both the queries .
>>
>> I tried :
>> mem_used_percent{host="hostname"} >= 70
>> mem_used_percent{host="hostname"} <= 80
>>
>> --
>> 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-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/prometheus-users/b1dead7c-bafe-4641-9fb4-cdd542c6da74n%40googlegroups.com
>> 
>> .
>>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CANegE5267%2B1e4ukpySBB%3DkVcTQ8yoH8hV8s8MvV8LE_rUAntqw%40mail.gmail.com.


Re: [prometheus-users] 2 operator conditions in single query

2021-02-08 Thread Ben Kochie
mem_used_percent{host="hostname"} >= 70 and
mem_used_percent{host="hostname"} <= 80

On Tue, Feb 9, 2021 at 1:56 AM sunils...@gmail.com 
wrote:

> I have to query servers with memory utilization between 70-80  % .
> I can query them separately but how can I combine both the queries .
>
> I tried :
> mem_used_percent{host="hostname"} >= 70
> mem_used_percent{host="hostname"} <= 80
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/b1dead7c-bafe-4641-9fb4-cdd542c6da74n%40googlegroups.com
> 
> .
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CABbyFmqonDvbJghKfGr%2BesdxvYBVxZPDFfu3_eOi0R5bdi6KLg%40mail.gmail.com.