05 Nov 2024 09:45 AM - last edited on 12 Nov 2024 10:34 AM by MaciejNeumann
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!
Solved! Go to Solution.
05 Nov 2024 10:24 AM
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
05 Nov 2024 12:22 PM
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")
05 Nov 2024 01:35 PM
Yep, the correct metric is the one you mention.