19 Feb 2024 05:36 PM - last edited on 26 Feb 2024 10:12 AM by MaciejNeumann
We have an synthetic Monitor and alerting profile but can we set alert rule in alerting like generate an Alert "for 5 Failures in 5 Mins".
Solved! Go to Solution.
19 Feb 2024 09:55 PM
Hi @PraveenYendluri,
I think you can do it at http synthetic monitors only with 1 min frequency.
First way, simple one (only with 1 min frequency):
Second way, use a metric expression for metric events:
Example:
builtin:synthetic.http.execution.status:filter(and(or(in("dt.entity.synthetic_location",entitySelector("type(synthetic_location),entityName.equals(~"YOUR SYNTHETIC LOCATION~")"))),or(eq(execution_state,FAIL)))):splitBy("dt.entity.http_check","dt.entity.synthetic_location",execution_state):sort(value(auto,descending))
Monitoring strategy for the metric event where you can use the above mentioned metric experssion:
I hope it helps.
Best regards,
Mizső
19 Feb 2024 10:06 PM
Thank you very much. Let me explore and see this solves my requirement.
19 Feb 2024 10:52 PM
Hello Sir, could you please explain me this query is doing.
Thank you.
20 Feb 2024 06:25 AM
Hi @PraveenYendluri,
This metric experession give back the counts of failed synthetic runs splited by http synthetic tests (name), locations and state (because of the filter only the failed runs) dimensions.
Best regards,
Mizső
20 Feb 2024 05:01 PM
Hi Mizso, Thanks for the update. I opted first way as you mentioned. Looks like its working bit after 5 mins for 5 failures I got an alert email but only once even the monitor is still continuously failing. Is this the expected behaviour? As I expecting continuous email alerts till problem resolved.
20 Feb 2024 05:25 PM
Hi @PraveenYendluri,
Yes this is the expected behaviour.
You can set at the problem integration a notification e-mail when the problem is closed.
Best regards,
Mizső