Template functions | Grafana Labs
grafana.com › docs › lokiThis function converts the entire string to lowercase or uppercase. Signatures: ToLower(string) string; ToUpper(string) string; Examples: "{{.request_method | ToLower}}" "{{.request_method | ToUpper}}" `{{ToUpper "This is a string" | ToLower}}` Note: In Grafana Loki 2.1 you can also use respectively lower and upper shortcut, e.g {{.request_method | lower }}.
Variable syntax | Grafana Labs
grafana.com › docs › grafana${var_name} Use this syntax when you want to interpolate a variable in the middle of an expression. ${var_name:<format>} This format gives you more control over how Grafana interpolates values. Refer to Advanced variable format options for more detail on all the formatting types. [[varname]] Do not use. Deprecated old syntax, will be removed in ...
Templates and variables | Grafana Labs
grafana.com › docs › grafanaTemplates and variables. A variable is a placeholder for a value. You can use variables in metric queries and in panel titles. So when you change the value, using the dropdown at the top of the dashboard, your panel’s metric queries will change to reflect the new value. Variables allow you to create more interactive and dynamic dashboards.
Advanced variable format options | Grafana Labs
grafana.com › docs › grafanaAdvanced variable format options. The formatting of the variable interpolation depends on the data source, but there are some situations where you might want to change the default formatting. For example, the default for the MySql data source is to join multiple values as comma-separated with quotes: 'server01','server02'.