21 Feb 2023 10:38 AM - last edited on 12 May 2023 06:29 PM by AgataWlodarczyk
Hey,
Help me out with a metric event alert please, it's a simple count metric, but I'm getting frustrated about it.
I'm trying on Settings/Anomaly detection/Metric events
I want to enable an alert via mail if, in a 6-minute period, the incoming data is more than 20 for 2 minutes, but if the data is below 20 again after the alert, for 2 minutes, then another email will come saying that the problem is solved.
My problem is I tried everything: Treshold, Violating samples, sliding samples, dealerting samples, it's just not giving me the correct behavior.
Solved! Go to Solution.
21 Feb 2023 01:09 PM
Hi, @Akos
First of, the minimum sample value for de-alerting is 3, so you can trigger an alert when count is higher than 20 for 2 min in 6, but the problem solving will be set if lower than 20 for 3 min in 6.
Example:
For this example I am using the builtin metric for service request count, and filtering for one single service. So the data is coming every 1 minute. The calls to my service is being getting every one minute.
You should take the metric type in consideration too. This builtin metric already aggregate the data as count, so this makes the thing easy.
Can you share with us the metric you are using?
Then, you can just create an alerting profile that filter for this metric event name to use it in the email problem notification.
22 Feb 2023 07:11 AM - edited 22 Feb 2023 07:30 AM
Hey, @dannemca
Ye its worked, i did the same way before, as in your screen, the problem was the "Alert on missing data" slide was on.
Thank you
Let me ask here another of the almost same problem. In this case i should get a warning when for 2 minutes there is no data on a 5 minute period. What im missing here?
Attached screen
22 Feb 2023 12:50 PM
The alerting on missing data, by default, will alert you when no data is seen in previous minute, it does not follow the sampling information you set for threshold validation.
I have recorded a solution for this in our Dynatrace Tips & Trics first session, https://youtu.be/Yg3fV63hZEk?t=540
Check this out and let me know if it works. In your case, you can try the rollup transformation for this case.
16 Mar 2023 09:34 AM
Hey dannemca
This rollup fuction looks good, i try it next week.
Really good video btw
Thank you
Akos