Added externalURL and pathPrefix functions to Template reference documentation

Signed-off-by: Jerome Meyer <jxmeyer@gmail.com>
This commit is contained in:
Jerome Meyer 2020-01-30 11:41:57 -05:00
parent 08c5549055
commit 8ab0a6e2ad
1 changed files with 2 additions and 0 deletions

View File

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