cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

alerting on multiple http checks

Germann
Visitor

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. 
Is there any custom events I can set up combined with tags or something?
Not sure how to best approach this.
Thanks in advance!

3 REPLIES 3

PacoPorro
Dynatrace Leader
Dynatrace Leader

I would say a metric events using the synthetic.http.availability metric is what you want.

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.
https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector#tag

Germann
Visitor

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")

Yep, the correct metric is the one you mention.

Featured Posts