If a monitor supports alerting when a given value is above or below a given threshold, it is possible to be notified if a given value is inside or outside of a range.
a reports discrete values from
10 representing a status and you want to be notified if the metric is not between
Mathematically, the difference between the metric and the center of the range (6) should never be more than 2.
8 > a > 4 <=> abs(6-a) < 2 <=> abs(6-a) - 2 < 0
abs(6-a) - 2 > 0.
2 - abs(6-a) > 0.
A range is defined by
x > a > y with
a being the metric in question.
abs((x-y/2) - a) - (x-y)/2 > 0.
(x-y)/2 - abs((x-y/2) - a) > 0.
Need help? Contact Datadog support.