In the next few videos, we're going to look at dashboard variables and how you apply them.
For example, dashboard variables are what's behind these drop downs.
When you change your variable dynamically updates this table, the single stats and these graphs, and
it can automatically draw as many as it needs, depending on how you form your queries and how you form
your visualizations.
For example, is for single stats to two or go back to that one.
There are many rows and there are many more single stats.
So as we learn about the dashboard, variables will recreate this whole dashboard and you will learn
everything you need to know about dashboard variables and how they are applied.
Let's get started.
Let's go to create a new dashboard.
And we'll just go straight to Dashboard's sitting's I'm going to call this dashboard.
Variables, for example, good, let's go straight to variables now, add a variable, and our first
variable is going to be a high interval and I'm going to call it interval.
That's the variable name and that's the name we'll use in further queries as we go further along.
That'll make sense.
And I can actually give it a specific label to say interval like that.
The difference here is I have a couple.
I can be anything you like.
This is the label that will appear on the dashboard interface.
So let's add that.
Well, there's some predefined values.
One minute, 10 minutes, 30 minutes.
We'll leave those.
Let's just add that this preview that now.
OK, so here's a dropdown interview with some values.
And behind the scenes, there's a variable called interval that I can use for further queries.
It's quite another variable.
It's verbal, OK, right, as a OneSource variable, I'm going to call it just I'm just going to call
DataSource.
The type will be Maisky, well, if we look down, here is a preview of values already crowded Mocksville
of Molecules Urbex.
These are these these values are pulled from what he knows about data sources already.
Now we have this regexp here so we can filter these further using this regex.
So let's just say, for example, I had many more Moyse, many more Ezekial data sources of different
types, say Microsoft or Oracle as well.
I could say show me only the ones with my Esquibel.
OK, so that didn't change anything.
Let's just say I had Ali show me the Microsoft.
Eskimo's was none of those or me only Oracle is none of those or even Shamy just the ones with the words
urbex, for instance, Moscow's urbex or just the ones with the word Eskil.
What's all of them?
Or just remove it all together.
Okay, so let's just add that and preview that quickly.
OK, DataSource Maskew.
We can dynamically change a data source that way, this create some more.
I'm not going to use that to create this final dashboard so I can delete that now, but the next one
I create will be one called.
Oast.
That will be a query and the label will be a bit nicer, Bain Capital, which like so the data source
will be in flux, deve be the refreshers on time range change and the query will be show tag values
from interface with key age enhanced.
If we were to go into explore, we would see when we select influx, they will have the option to query
interface and then also to drill down by selecting Ironhorse.
That's where this information can be found.
OK, we can also sort of we want to we don't really need to.
It's good enough.
So there's a preview of the current values that I'm able to query through in flux.
DB So those three let's let's add that.
Got a quick preview.
My go host, my three hosts, my SNP hosts.
I've set up in the last few videos to one minute let's add another one and another variable, quite
new one, and this one will be called interface.
The equerry liability interface, and this gives us an option to drill down to specific network interfaces
if we really want to, but we'll see what this does to select influx DB refresh on time range change
query will be.
Should I take values into Facebook if description where agent host equals post?
Now that's the value we created.
What a variable we had just a few moments ago.
So that's.
Also, alphabetically, I hope there's a preview of value so far, so we can see that it's actually
working and that go to dashboard and we can see now.
So when we choose a host, we're going to there.
If we change our host, because this is the query behind this is querying this value.
It updates like so much.
Again, it's updated again.
And we go and we'll show you one more last one that you can do.
Well, we have several different kinds.
I'll show you one for a custom custom here so we can have a custom drop down, for example, doing anything
we like a, b, c, d, e, f, g, h, i, j, k, l, for example, can be multi value.
We can clear the all option.
There's a preview at.
Must have a name.
So my custom.
Let's add that and we can preview that in the video custom, maybe so you can select all or selected
or toggle or select individually.
I like.
I'm not going to use that in the final dashboard so I can delete it, let's save our progress.
The next thing will do was at a table that uses this information.