From 5736a3c59e56488e7a39658bc2d2877c429f4239 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Fri, 17 Jun 2022 18:30:33 +0100 Subject: [PATCH] Alerting: Docs on how to template annotations and labels (#51024) --- .../annotation-label/variables-label-annotation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 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 643707433d1..d5a5115f625 100644 --- a/docs/sources/alerting/fundamentals/annotation-label/variables-label-annotation.md +++ b/docs/sources/alerting/fundamentals/annotation-label/variables-label-annotation.md @@ -38,7 +38,7 @@ One difference between Grafana and Prometheus is that Grafana uses `$value` to h of the condition at the time the alert fired. For example: ``` -[ var='B' labels={instance=http_server} value=10.01 ] +[ var='B' labels={instance=http_server} value=10 ] ``` ## Alert rules with two or more queries or expressions @@ -72,7 +72,7 @@ We can also show the labels of `B`, however since this alert rule has just one q `$labels`: ``` -{{ values.B.Labels.instance }} has a 95th percentile request latency above 1s: {{ $values.B }}) +{{ $values.B.Labels.instance }} has a 95th percentile request latency above 1s: {{ $values.B }}) ``` ### No data and execution errors or timeouts