From 51e4e2a5264172412506e5cb2e6c26507bd16c56 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Sun, 30 May 2021 23:36:05 -0400 Subject: [PATCH] Updated docs Signed-off-by: Levi Harrison --- docs/configuration/template_reference.md | 6 +++--- docs/configuration/unit_testing_rules.md | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/configuration/template_reference.md b/docs/configuration/template_reference.md index 92161f4c64..67e37e0d3d 100644 --- a/docs/configuration/template_reference.md +++ b/docs/configuration/template_reference.md @@ -90,9 +90,9 @@ parameterize templates, and have a few other differences. ### Alert field templates -`.Value`, `.Labels`, and `.ExternalLabels` contain the alert value, the alert -labels, and the globally configured external labels, respectively. They are -also exposed as the `$value`, `$labels`, and `$externalLabels` variables for +`.Value`, `.Labels`, `.ExternalLabels`, and `.ExternalURL` contain the alert value, the alert +labels, the globally configured external labels, and the external URL (configured with `--web.external-url`) respectively. They are +also exposed as the `$value`, `$labels`, `$externalLabels`, and `$externalURL` variables for convenience. ### Console templates diff --git a/docs/configuration/unit_testing_rules.md b/docs/configuration/unit_testing_rules.md index 644b35a171..1cf87d6b3e 100644 --- a/docs/configuration/unit_testing_rules.md +++ b/docs/configuration/unit_testing_rules.md @@ -59,6 +59,10 @@ promql_expr_test: # External labels accessible to the alert template. external_labels: [ : ... ] + +# External URL accessible to the alert template. +# Usually set using --web.external-url. + [ external_url: ] ``` ### ``