Updated docs

Signed-off-by: Levi Harrison <git@leviharrison.dev>
This commit is contained in:
Levi Harrison 2021-05-30 23:36:05 -04:00
parent 26274527df
commit 51e4e2a526
No known key found for this signature in database
GPG key ID: 23A7BDEAE860B57D
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -59,6 +59,10 @@ promql_expr_test:
# External labels accessible to the alert template.
external_labels:
[ <labelname>: <string> ... ]
# External URL accessible to the alert template.
# Usually set using --web.external-url.
[ external_url: <string> ]
```
### `<series>`