# Creating multi-dimensional alerts with multiple queries to different hosts

**URL:** <https://community.grafana.com/t/creating-multi-dimensional-alerts-with-multiple-queries-to-different-hosts/129116>\
**Category:** Alerting\
**Tags:** alert-rule, query-help, alert-templating, alerting\
**Created:** [August 20, 2024, 9:51pm UTC](https://community.grafana.com/t/creating-multi-dimensional-alerts-with-multiple-queries-to-different-hosts/129116 "2024-08-20T21:51:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benled1](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@benled1](https://community.grafana.com/u/benled1)\
**Post date:** [August 20, 2024, 9:51pm UTC](https://community.grafana.com/t/creating-multi-dimensional-alerts-with-multiple-queries-to-different-hosts/129116/1 "2024-08-20T21:51:14Z")

</div>

I have a fleet of multi-machine devices which need to have alerts configured for them. I am looking for a way to create a single alert that will monitor all the devices.

For example:

I have many devices that are each comprised of 4 machines. machine1, machine2, machine3, machine4. I want an alert that will detect when metric1 on machine1 and metric2 on machine3 are both above 0 at the same time.

I would like to only create a single alert-rule for all devices. Each machine hostname is named with the format device-machine1, device-machine2 etc…

I have looked into multi-dimensional alerting, however, I can’t seem to figure out how to create multi-dimension alerts with multiple queries to different hosts.

Any help with this problem would be awesome! Thanks in advance!
