From 9073f1a5258d8514b6128f35775eb69b41f5dabd Mon Sep 17 00:00:00 2001 From: Johnny Kartheiser <140559259+JohnnyK-Grafana@users.noreply.github.com> Date: Mon, 24 Feb 2025 12:17:13 -0600 Subject: [PATCH] docs: document new alerting threshold operators (#101013) * 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> --- .../alerting/fundamentals/alert-rules/queries-conditions.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/sources/alerting/fundamentals/alert-rules/queries-conditions.md b/docs/sources/alerting/fundamentals/alert-rules/queries-conditions.md index 582d93d958e..175306e8ef1 100644 --- a/docs/sources/alerting/fundamentals/alert-rules/queries-conditions.md +++ b/docs/sources/alerting/fundamentals/alert-rules/queries-conditions.md @@ -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.