Skip to content

Commit

Permalink
Merge pull request prometheus#6724 from peergynt/template_reference
Browse files Browse the repository at this point in the history
Added externalURL and pathPrefix functions to Template reference docs
  • Loading branch information
roidelapluie committed Sep 26, 2023
2 parents 6dcbd65 + a8cdb7e commit a3f4246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/configuration/template_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ 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 external URL under which Prometheus is externally reachable. |
| pathPrefix | _none_ | string | The external URL [path](https://pkg.go.dev/net/url#URL) for use in console templates. |

## Template type differences
Expand Down

0 comments on commit a3f4246

Please sign in to comment.