From c670897c6ade6295ee06521d0df4b0f8c33923fb Mon Sep 17 00:00:00 2001 From: Marcus Efraimsson Date: Thu, 4 Oct 2018 18:45:47 +0200 Subject: [PATCH] docs: new variable type text box that allows free text input --- docs/sources/guides/whats-new-in-v5-3.md | 8 +++++++- docs/sources/reference/templating.md | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/sources/guides/whats-new-in-v5-3.md b/docs/sources/guides/whats-new-in-v5-3.md index 6d82a98be56..d99612c71e3 100644 --- a/docs/sources/guides/whats-new-in-v5-3.md +++ b/docs/sources/guides/whats-new-in-v5-3.md @@ -20,6 +20,7 @@ Grafana v5.3 brings new features, many enhancements and bug fixes. This article - [Postgres]({{< relref "#postgres-query-builder" >}}) gets a new query builder! - [OAuth]({{< relref "#improved-oauth-support-for-gitlab" >}}) support for Gitlab is improved - [Annotations]({{< relref "#annotations" >}}) with template variable filtering +- [Variables]({{< relref "#variables" >}}) with free text support ## Google Stackdriver @@ -64,12 +65,17 @@ Grafana 5.3 comes with a new OAuth integration for Gitlab that enables configura Learn how to enable and configure it in the [documentation](/auth/gitlab/). ## Annotations - it possible to use template vari + Grafana 5.3 brings improved support for [native annotations](/reference/annotations/#native-annotations) and makes it possible to use template variables when filtering by tags. Learn more about it in the [documentation](/reference/annotations/#query-by-tag). {{< docs-imagebox img="/img/docs/v53/annotation_tag_filter_variable.png" max-width="600px" >}} +## Variables + +Grafana 5.3 ships with a brand new variable type named `Text box` which makes it easier and more convenient to provide free text input to a variable. +This new variable type will display as a free text input field with an optional prefilled default value. + ## Changelog Checkout the [CHANGELOG.md](https://github.com/grafana/grafana/blob/master/CHANGELOG.md) file for a complete list diff --git a/docs/sources/reference/templating.md b/docs/sources/reference/templating.md index 31251fd6389..403dabba8ae 100644 --- a/docs/sources/reference/templating.md +++ b/docs/sources/reference/templating.md @@ -90,6 +90,7 @@ Type | Description *Custom* | Define the variable options manually using a comma separated list. *Constant* | Define a hidden constant. Useful for metric path prefixes for dashboards you want to share. During dashboard export, constant variables will be made into an import option. *Ad hoc filters* | Very special kind of variable that only works with some data sources, InfluxDB & Elasticsearch currently. It allows you to add key/value filters that will automatically be added to all metric queries that use the specified data source. +*Text box* | This variable type will display as a free text input field with an optional default value. ### Query options