From 8ab0a6e2add1a9e40350a32b6e709bdc87eb4080 Mon Sep 17 00:00:00 2001 From: Jerome Meyer Date: Thu, 30 Jan 2020 11:41:57 -0500 Subject: [PATCH] Added externalURL and pathPrefix functions to Template reference documentation Signed-off-by: Jerome Meyer --- docs/configuration/template_reference.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/configuration/template_reference.md b/docs/configuration/template_reference.md index fe2b60b2337..475946923bf 100644 --- a/docs/configuration/template_reference.md +++ b/docs/configuration/template_reference.md @@ -82,6 +82,8 @@ versions. | args | []interface{} | map[string]interface{} | This converts a list of objects to a map with keys arg0, arg1 etc. This is intended to allow multiple arguments to be passed to templates. | | tmpl | string, []interface{} | nothing | Like the built-in `template`, but allows non-literals as the template name. Note that the result is assumed to be safe, and will not be auto-escaped. Only available in consoles. | | safeHtml | string | string | Marks string as HTML not requiring auto-escaping. | +| externalURL | none | string | The URL under which Prometheus is externally reachable (set with `--web.external-url`). | +| pathPrefix | none | string | Path portion of the external URL. | ## Template type differences