Skip to content

Commit

Permalink
Correct range formula descriptions (#14908)
Browse files Browse the repository at this point in the history
* Correct range formula descriptions

* Correct math to determine center of the range

* Remove unnecessary parenthesis
  • Loading branch information
rsyabuta authored Aug 5, 2022
1 parent d87504d commit 000bc88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/monitors/guide/monitor-for-value-within-a-range.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Mathematically, the difference between the metric and the center of the range (6

A range is defined by `x > a > y` with `a` being the metric in question.

- To be notified if the value is inside the range, the monitor condition should be: `abs((x-y/2) - a) - (x-y)/2 > 0`.
- To be notified if the value is outside the range, the monitor condition should be: `(x-y)/2 - abs((x-y/2) - a) > 0`.
- To be notified if the value is outside the range, the monitor condition should be: `abs(x - (x-y)/2 - a) - (x-y)/2 > 0`.
- To be notified if the value is inside the range, the monitor condition should be: `(x-y)/2 - abs(x - (x-y)/2 - a) > 0`.

## Troubleshooting

Expand Down

0 comments on commit 000bc88

Please sign in to comment.