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

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

PraveenYendluri
Frequent Guest

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

6 REPLIES 6

Mizső
DynaMight Guru
DynaMight Guru

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

Mizs_3-1708379319069.png

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

Mizs_4-1708379535575.png

Monitoring strategy for the metric event where you can use the above mentioned metric experssion:

Mizs_5-1708379678710.png

I hope it helps.

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

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ő

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

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.

Mizs_2-1708449873993.png

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

Featured Posts