# alerting on multiple http checks

**URL:** <https://community.dynatrace.com/t/alerting-on-multiple-http-checks/48713>\
**Category:** Alerting\
**Tags:** problem-notification, anomaly-detection, problems\
**Created:** [November 5, 2024, 9:45am UTC](https://community.dynatrace.com/t/alerting-on-multiple-http-checks/48713 "2024-11-05T09:45:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Germann](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@Germann](https://community.dynatrace.com/u/Germann)\
**Post date:** [November 5, 2024, 9:45am UTC](https://community.dynatrace.com/t/alerting-on-multiple-http-checks/48713/1 "2024-11-05T09:45:25Z")

</div>

Hi Community,

I got a question from a customer to create 1 alerting profile on multiple HTTP checks.  
So there will be 10 HTTP checks configured, alerting must be set to alert on when less than 70% of these HTTP checks are successful.&nbsp;  
Is there any custom events I can set up combined with tags or something?  
Not sure how to best approach this.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [November 5, 2024, 10:24am UTC](https://community.dynatrace.com/t/alerting-on-multiple-http-checks/48713/2 "2024-11-05T10:24:48Z")

</div>

I would say a [metric events](https://docs.dynatrace.com/docs/shortlink/metric-events) using the synthetic.http.availability metric is what you want.

```php
builtin:synthetic.http.availability:filter(and(or(in("dt.entity.http_check",entitySelector("type(http_check),entityName.equals(~"easytravel storebooking~")")),in("dt.entity.http_check",entitySelector("type(http_check),entityName.equals(~"www.easytravel.com - HTTP~")"))))):splitBy()

```

Instead of using entityName, you can use tags too.

> **[Tag - Environment API v2 - Entity selector](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector#tag)**
>
> The entity selector is a powerful instrument for specifying which entities you want to include in the scope of your Environment API v2 calls. It is used in several APIs, so you only have to learn the syntax once and then reuse it for multiple use...

---

<div class="post-metadata">

**Author:** ![Germann](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@Germann](https://community.dynatrace.com/u/Germann)\
**Post date:** [November 5, 2024, 12:22pm UTC](https://community.dynatrace.com/t/alerting-on-multiple-http-checks/48713/3 "2024-11-05T12:22:07Z")

</div>

Hi Paco, thanks. I think I got it. I got a "No metric found using the Metric ID " when I used the metric ID builtin:synthetic. HTTP.availability, so I am using builtin:synthetic. HTTP.availability.location.total.

builtin:synthetic.http.availability.location.total:filter(and(or(in(“dt.entity.http\_check”,entitySelector(“type(http\_check),entityName.equals(~”\<PAGE-A\>~“)”)),in(“dt.entity.http\_check”,entitySelector(“type(http\_check),entityName.equals(~”\<PAGE-B\>~“)”))))):splitBy(“dt.entity.http\_check”)

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [November 5, 2024, 1:35pm UTC](https://community.dynatrace.com/t/alerting-on-multiple-http-checks/48713/4 "2024-11-05T13:35:52Z")

</div>

Yep, the correct metric is the one you mention.
