From 55767313320c8b38605ef5cc260dcfc6ffbfaae0 Mon Sep 17 00:00:00 2001 From: Damian Szczepanik Date: Wed, 24 Jan 2024 11:36:50 +0100 Subject: [PATCH] Docs: Update variables-label-annotation.md (#81134) Update variables-label-annotation.md Additional closing bracket was removed --- .../annotation-label/variables-label-annotation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sources/alerting/fundamentals/annotation-label/variables-label-annotation.md b/docs/sources/alerting/fundamentals/annotation-label/variables-label-annotation.md index c51bf4f4cd7..9ed6eeb606b 100644 --- a/docs/sources/alerting/fundamentals/annotation-label/variables-label-annotation.md +++ b/docs/sources/alerting/fundamentals/annotation-label/variables-label-annotation.md @@ -225,7 +225,7 @@ The `$value` variable is a string containing the labels and values of all instan To print the `$value` variable in the summary you would write something like this: ``` -CPU usage for {{ index $labels "instance" }} has exceeded 80% for the last 5 minutes: {{ $value }}) +CPU usage for {{ index $labels "instance" }} has exceeded 80% for the last 5 minutes: {{ $value }} ``` And would look something like this: @@ -245,7 +245,7 @@ The `$values` variable is a table containing the labels and floating point value To print the value of the instant query with Ref ID A: ``` -CPU usage for {{ index $labels "instance" }} has exceeded 80% for the last 5 minutes: {{ index $values "A" }}) +CPU usage for {{ index $labels "instance" }} has exceeded 80% for the last 5 minutes: {{ index $values "A" }} ``` For example, given an alert with the labels `instance=server1` and an instant query with the value `81.2345`, this would print: @@ -257,7 +257,7 @@ CPU usage for instance1 has exceeded 80% for the last 5 minutes: 81.2345 If the query in Ref ID A is a range query rather than an instant query then add a reduce expression with Ref ID B and replace `(index $values "A")` with `(index $values "B")`: ``` -CPU usage for {{ index $labels "instance" }} has exceeded 80% for the last 5 minutes: {{ index $values "B" }}) +CPU usage for {{ index $labels "instance" }} has exceeded 80% for the last 5 minutes: {{ index $values "B" }} ``` ## Functions