# How to create an alert when all values returned by a query are bellow of a threshold

**URL:** <https://community.grafana.com/t/how-to-create-an-alert-when-all-values-returned-by-a-query-are-bellow-of-a-threshold/77000>\
**Category:** Alerting\
**Created:** [November 29, 2022, 5:34pm UTC](https://community.grafana.com/t/how-to-create-an-alert-when-all-values-returned-by-a-query-are-bellow-of-a-threshold/77000 "2022-11-29T17:34:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivroman](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@ivroman](https://community.grafana.com/u/ivroman)\
**Post date:** [November 29, 2022, 5:34pm UTC](https://community.grafana.com/t/how-to-create-an-alert-when-all-values-returned-by-a-query-are-bellow-of-a-threshold/77000/1 "2022-11-29T17:34:02Z")

</div>

Hello everybody,

I have a Prometheus query which returns the usage of some datastores in a time series format. I want to create an alert when “all” returned values of the datastore are bellow/above a threshold. So far, the provided alerting functions do not help me. Grafana version is 8.3.3.  
Any help will be really appreciated !
