30 Jul 2026 11:39 PM
From the alert settings I'm able to create an alert query that charts server response times for a service. Currently that is set to alert when the threshold goes over 1 second. However, we want to ignore occasional blips so we want it to send an alert when it has been over 1 second for 5 minutes. I tried adding a "from:-5m" to my timeseries query but the query was not accepted by the alerting service and notified me that "from" and "to" were not allowed.
Any ideas?
31 Jul 2026 01:05 AM - edited 31 Jul 2026 01:05 AM
Hey Cambuchi,
While creating a custom anomaly detector there are 2 modes, simple and advanced. If you switch to advanced mode you'll find settings for changing the violating samples as well as changing the size of the sliding window used for evaluation. Changing the violating samples to 5 would make it so the threshold has to be breached for 5 minutes to alert.
You can read more about sliding windows and evaluation in the docs here https://docs.dynatrace.com/docs/shortlink/anomaly-detection-configuration#sliding-window
Hope this helps!
Featured Posts