# Conditional Alert Grouping

**URL:** <https://community.grafana.com/t/conditional-alert-grouping/111197>\
**Category:** Grafana Cloud\
**Tags:** alerting\
**Created:** [January 3, 2024, 6:07pm UTC](https://community.grafana.com/t/conditional-alert-grouping/111197 "2024-01-03T18:07:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave5770](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dave5770](https://community.grafana.com/u/dave5770)\
**Post date:** [January 3, 2024, 6:07pm UTC](https://community.grafana.com/t/conditional-alert-grouping/111197/1 "2024-01-03T18:07:45Z")

</div>

We are using IRM to feed alerts to engineers from Prometheus. We would like to apply a different grouping criteria, depending on the content of the alert. Is that possible?

---

<div class="post-metadata">

**Author:** ![Melody](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@Melody](https://community.grafana.com/u/Melody)\
**Post date:** [February 26, 2024, 9:14pm UTC](https://community.grafana.com/t/conditional-alert-grouping/111197/2 "2024-02-26T21:14:21Z")

</div>

Hi @dave5770 - you should be able to route alerts based on labels:

> **[Escalation chains and routes | Grafana OnCall documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/oncall/configure/escalation-chains-and-routes/#routing-based-on-labels)**
>
> Understand how to configure escalation chains and routes for OnCall.

> **[View and filter by alert groups | Grafana documentation](https://grafana.com/docs/grafana-cloud/alerting-and-irm/alerting/manage-notifications/view-alert-groups/)**
>
> Alert groups
