1
00:00:00,370 --> 00:00:05,390
In the next few videos, we're going to look at dashboard variables and how you apply them.

2
00:00:05,520 --> 00:00:09,660
For example, dashboard variables are what's behind these drop downs.

3
00:00:09,840 --> 00:00:17,730
When you change your variable dynamically updates this table, the single stats and these graphs, and

4
00:00:17,730 --> 00:00:24,450
it can automatically draw as many as it needs, depending on how you form your queries and how you form

5
00:00:24,450 --> 00:00:26,530
your visualizations.

6
00:00:26,550 --> 00:00:31,350
For example, is for single stats to two or go back to that one.

7
00:00:31,380 --> 00:00:34,110
There are many rows and there are many more single stats.

8
00:00:34,110 --> 00:00:39,090
So as we learn about the dashboard, variables will recreate this whole dashboard and you will learn

9
00:00:39,090 --> 00:00:42,930
everything you need to know about dashboard variables and how they are applied.

10
00:00:43,380 --> 00:00:44,500
Let's get started.

11
00:00:44,610 --> 00:00:48,180
Let's go to create a new dashboard.

12
00:00:50,870 --> 00:00:57,830
And we'll just go straight to Dashboard's sitting's I'm going to call this dashboard.

13
00:00:59,440 --> 00:01:07,300
Variables, for example, good, let's go straight to variables now, add a variable, and our first

14
00:01:07,300 --> 00:01:12,530
variable is going to be a high interval and I'm going to call it interval.

15
00:01:13,300 --> 00:01:22,110
That's the variable name and that's the name we'll use in further queries as we go further along.

16
00:01:22,120 --> 00:01:23,080
That'll make sense.

17
00:01:23,320 --> 00:01:27,880
And I can actually give it a specific label to say interval like that.

18
00:01:28,570 --> 00:01:30,030
The difference here is I have a couple.

19
00:01:30,110 --> 00:01:32,260
I can be anything you like.

20
00:01:32,270 --> 00:01:35,830
This is the label that will appear on the dashboard interface.

21
00:01:35,840 --> 00:01:37,300
So let's add that.

22
00:01:37,300 --> 00:01:39,400
Well, there's some predefined values.

23
00:01:39,400 --> 00:01:41,080
One minute, 10 minutes, 30 minutes.

24
00:01:41,450 --> 00:01:42,430
We'll leave those.

25
00:01:42,670 --> 00:01:45,970
Let's just add that this preview that now.

26
00:01:46,960 --> 00:01:50,920
OK, so here's a dropdown interview with some values.

27
00:01:51,280 --> 00:01:56,680
And behind the scenes, there's a variable called interval that I can use for further queries.

28
00:01:57,710 --> 00:01:58,850
It's quite another variable.

29
00:02:02,000 --> 00:02:09,169
It's verbal, OK, right, as a OneSource variable, I'm going to call it just I'm just going to call

30
00:02:09,180 --> 00:02:10,100
DataSource.

31
00:02:12,140 --> 00:02:18,320
The type will be Maisky, well, if we look down, here is a preview of values already crowded Mocksville

32
00:02:18,320 --> 00:02:19,390
of Molecules Urbex.

33
00:02:19,400 --> 00:02:25,350
These are these these values are pulled from what he knows about data sources already.

34
00:02:25,580 --> 00:02:31,280
Now we have this regexp here so we can filter these further using this regex.

35
00:02:31,280 --> 00:02:38,930
So let's just say, for example, I had many more Moyse, many more Ezekial data sources of different

36
00:02:38,930 --> 00:02:41,890
types, say Microsoft or Oracle as well.

37
00:02:41,900 --> 00:02:46,830
I could say show me only the ones with my Esquibel.

38
00:02:47,420 --> 00:02:49,400
OK, so that didn't change anything.

39
00:02:49,880 --> 00:02:53,410
Let's just say I had Ali show me the Microsoft.

40
00:02:53,420 --> 00:03:01,250
Eskimo's was none of those or me only Oracle is none of those or even Shamy just the ones with the words

41
00:03:01,250 --> 00:03:06,210
urbex, for instance, Moscow's urbex or just the ones with the word Eskil.

42
00:03:06,440 --> 00:03:07,340
What's all of them?

43
00:03:07,820 --> 00:03:09,560
Or just remove it all together.

44
00:03:10,350 --> 00:03:15,290
Okay, so let's just add that and preview that quickly.

45
00:03:15,530 --> 00:03:17,420
OK, DataSource Maskew.

46
00:03:18,800 --> 00:03:22,880
We can dynamically change a data source that way, this create some more.

47
00:03:24,420 --> 00:03:30,870
I'm not going to use that to create this final dashboard so I can delete that now, but the next one

48
00:03:30,870 --> 00:03:33,300
I create will be one called.

49
00:03:34,880 --> 00:03:35,420
Oast.

50
00:03:37,290 --> 00:03:45,030
That will be a query and the label will be a bit nicer, Bain Capital, which like so the data source

51
00:03:45,030 --> 00:03:55,080
will be in flux, deve be the refreshers on time range change and the query will be show tag values

52
00:03:55,080 --> 00:03:57,390
from interface with key age enhanced.

53
00:03:59,400 --> 00:04:07,260
If we were to go into explore, we would see when we select influx, they will have the option to query

54
00:04:07,590 --> 00:04:11,640
interface and then also to drill down by selecting Ironhorse.

55
00:04:11,680 --> 00:04:14,430
That's where this information can be found.

56
00:04:14,780 --> 00:04:17,870
OK, we can also sort of we want to we don't really need to.

57
00:04:18,519 --> 00:04:19,500
It's good enough.

58
00:04:19,950 --> 00:04:26,610
So there's a preview of the current values that I'm able to query through in flux.

59
00:04:26,610 --> 00:04:30,510
DB So those three let's let's add that.

60
00:04:31,170 --> 00:04:32,460
Got a quick preview.

61
00:04:32,820 --> 00:04:36,980
My go host, my three hosts, my SNP hosts.

62
00:04:37,010 --> 00:04:45,350
I've set up in the last few videos to one minute let's add another one and another variable, quite

63
00:04:45,360 --> 00:04:47,940
new one, and this one will be called interface.

64
00:04:49,630 --> 00:04:58,430
The equerry liability interface, and this gives us an option to drill down to specific network interfaces

65
00:04:58,430 --> 00:05:06,110
if we really want to, but we'll see what this does to select influx DB refresh on time range change

66
00:05:06,590 --> 00:05:08,290
query will be.

67
00:05:09,800 --> 00:05:16,030
Should I take values into Facebook if description where agent host equals post?

68
00:05:16,160 --> 00:05:18,580
Now that's the value we created.

69
00:05:18,590 --> 00:05:21,350
What a variable we had just a few moments ago.

70
00:05:22,070 --> 00:05:23,390
So that's.

71
00:05:25,740 --> 00:05:32,010
Also, alphabetically, I hope there's a preview of value so far, so we can see that it's actually

72
00:05:32,010 --> 00:05:37,700
working and that go to dashboard and we can see now.

73
00:05:37,710 --> 00:05:41,190
So when we choose a host, we're going to there.

74
00:05:41,400 --> 00:05:47,940
If we change our host, because this is the query behind this is querying this value.

75
00:05:48,070 --> 00:05:51,420
It updates like so much.

76
00:05:51,690 --> 00:05:53,340
Again, it's updated again.

77
00:05:54,340 --> 00:05:59,100
And we go and we'll show you one more last one that you can do.

78
00:06:00,500 --> 00:06:02,870
Well, we have several different kinds.

79
00:06:03,320 --> 00:06:10,310
I'll show you one for a custom custom here so we can have a custom drop down, for example, doing anything

80
00:06:10,310 --> 00:06:17,960
we like a, b, c, d, e, f, g, h, i, j, k, l, for example, can be multi value.

81
00:06:18,650 --> 00:06:20,120
We can clear the all option.

82
00:06:20,480 --> 00:06:22,910
There's a preview at.

83
00:06:24,940 --> 00:06:25,980
Must have a name.

84
00:06:25,990 --> 00:06:27,910
So my custom.

85
00:06:29,660 --> 00:06:36,830
Let's add that and we can preview that in the video custom, maybe so you can select all or selected

86
00:06:36,950 --> 00:06:39,560
or toggle or select individually.

87
00:06:41,570 --> 00:06:42,470
I like.

88
00:06:44,730 --> 00:06:50,580
I'm not going to use that in the final dashboard so I can delete it, let's save our progress.

89
00:06:53,740 --> 00:06:57,850
The next thing will do was at a table that uses this information.

