Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
b4a8678c
Commit
b4a8678c
authored
May 04, 2017
by
Trent White
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove duplicate paragraph, couple word tweaks
parent
0390a7c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
docs/sources/reference/templating.md
+4
-8
No files found.
docs/sources/reference/templating.md
View file @
b4a8678c
...
...
@@ -10,16 +10,12 @@ weight = 1
# Templating
Instead of hard-coding things like server, application and sensor name in you metric queries you can use variables in their place.
Variables are shown as dropdown select boxes at the top of the dashboard. These dropdowns makes it easy to change the data
being displayed in your dashboard.
<img
class=
"no-shadow"
src=
"/img/docs/v4/templated_dash.png"
>
Templating allows for more interactive and dynamic dashboards. Instead of hard-coding things like server, application
and sensor name in you metric queries you can use variables in their place. Variables are shown as dropdown select boxes at the top of
the dashboard. These dropdowns make it easy to change the data being displayed in your dashboard.
<img
class=
"no-shadow"
src=
"/img/docs/v4/templated_dash.png"
>
## What is a variable?
A variable is a placeholder for a value. You can use variables in metric queries and in panel titles. So when you change
...
...
@@ -42,7 +38,7 @@ documentation article for details on value escaping during interpolation.
### Variable options
A variable is presented as a dropdown select box at the top of the dashboard
s
. It has a current value and a set of
**options**
. The
**options**
A variable is presented as a dropdown select box at the top of the dashboard. It has a current value and a set of
**options**
. The
**options**
is the set of values you can choose from.
## Adding a variable
...
...
@@ -151,7 +147,7 @@ Template variables can be very useful to dynamically change your queries across
Grafana to dynamically create new panels or rows based on what values you have selected you can use the
*Repeat*
feature.
If you have a variable with
`Multi-value`
or
`Include all value`
options enabled you can choose one panel or one row and have Grafana repeat that row
for every selected value. You find this option under the General tab in panel edit mode.
You s
elect the variable to repeat by, and a
`min span`
.
for every selected value. You find this option under the General tab in panel edit mode.
S
elect the variable to repeat by, and a
`min span`
.
The
`min span`
controls how small Grafana will make the panels (if you have many values selected). Grafana will automatically adjust the width of
each repeated panel so that the whole row is filled. Currently, you cannot mix other panels on a row with a repeated panel.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment