PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616)
* Format md,mdx files with prettier on lint-staged * Manually run prettier on docs/sources
This commit is contained in:
@@ -5,7 +5,7 @@ weight = 300
|
||||
|
||||
# Config from query results transform
|
||||
|
||||
> **Note:** This is a new beta transformation introduced in v8.1.
|
||||
> **Note:** This is a new beta transformation introduced in v8.1.
|
||||
|
||||
This transformation allow you select one query and from it extract [standard options]({{< relref "../standard-options.md" >}}) like **Min**, **Max**, **Unit** and **Thresholds** and apply it to other query results. This enables dynamic query driven visualization configuration.
|
||||
|
||||
@@ -19,7 +19,7 @@ If you want to extract a unique config for every row in the config query result
|
||||
|
||||
### Field mapping table
|
||||
|
||||
This transformation includes a field table which lists all fields in the data returned by the config query. This table gives you control over what field should be mapped to each config property (the *Use as** option). You can also choose which value to select if there are multiple rows in the returned data.
|
||||
This transformation includes a field table which lists all fields in the data returned by the config query. This table gives you control over what field should be mapped to each config property (the \*Use as\*\* option). You can also choose which value to select if there are multiple rows in the returned data.
|
||||
|
||||
## Example
|
||||
|
||||
@@ -48,7 +48,7 @@ As you can see each row in the source data becomes a separate field. Each field
|
||||
|
||||
## Value mappings
|
||||
|
||||
You can also transform a query result into value mappings. This is is a bit different as here every row in the config query result will be used to define a single value mapping row. See example below.
|
||||
You can also transform a query result into value mappings. This is is a bit different as here every row in the config query result will be used to define a single value mapping row. See example below.
|
||||
|
||||
Config query result:
|
||||
|
||||
@@ -66,4 +66,4 @@ In the field mapping specify:
|
||||
| Text | Value mappings / Text | All values |
|
||||
| Color | Value mappings / Ciolor | All values |
|
||||
|
||||
Grafana will build the value mappings from you query result and apply it the the real data query results. You should see values being mapped and colored according to the config query results.
|
||||
Grafana will build the value mappings from you query result and apply it the the real data query results. You should see values being mapped and colored according to the config query results.
|
||||
|
||||
Reference in New Issue
Block a user