Can we set count on generating alert with specified time like 5 failures in 5mins.

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”.

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ő

Thank you very much. Let me explore and see this solves my requirement.

Hello Sir, could you please explain me this query is doing.

Thank you.

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ő

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.

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ő