Skip to content

Commit

Permalink
docs: document new alerting threshold operators (grafana#101013)
Browse files Browse the repository at this point in the history
* docs: document new alerting threshold operators

adding new operators to alerting docs
Equal
Not Equal
Greater or Equal
Less or Equal
Within Range Inclusive
Outside Range Inclusive

* cAPITALIZATION fIX

* Update docs/sources/alerting/fundamentals/alert-rules/queries-conditions.md

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/queries-conditions.md

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/queries-conditions.md

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>

* Update queries-conditions.md

matching with ui

---------

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
  • Loading branch information
JohnnyK-Grafana and ppcano authored Feb 24, 2025
1 parent a01ab79 commit 9073f1a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,14 @@ The threshold expression allows the comparison between two single values. Availa

- **Is above**: `$A > 5`
- **Is below**: `$B < 3`
- **Is equal to**: `$A == 2`
- **Is not equal to**: `$B =! 4`
- **Is above or equal to**: `$A >= 8`
- **Is below or equal to**: `$B <= 16`
- **Is within range**: `$A > 0 AND $A < 10`
- **Is outside range**: `$B < 0 OR $B > 100`
- **Is within range included**: `$A >= 0 AND $A <= 10`
- **Is outside range included**: `$B <= 0 OR $B >= 100`

A threshold returns `0` when the condition is false and `1` when true.

Expand Down

0 comments on commit 9073f1a

Please sign in to comment.