1
00:00:00,270 --> 00:00:08,490
So here's another video on Value Group's tags inside your Fana and remembering that Value Group's tags

2
00:00:08,910 --> 00:00:13,950
behaves very differently depending on the data source that you're using the queries.

3
00:00:14,340 --> 00:00:22,560
So this example will be more specific for when you're using influx DB and also using Telegraaf as the

4
00:00:22,560 --> 00:00:23,130
collector.

5
00:00:24,880 --> 00:00:30,880
OK, so this is our current drop down, and so far in the course, we know how to create a drop down

6
00:00:30,880 --> 00:00:36,490
like this and we know how to fill it with data and we know how to create repeating graphs on the data

7
00:00:36,700 --> 00:00:44,500
that will update the dashboard once we select a different combination of items from the dropdown.

8
00:00:44,950 --> 00:00:51,130
And this example is shown in octets and out audits of all the interfaces of one of my specific hosts

9
00:00:51,760 --> 00:00:53,110
to show the query.

10
00:00:53,170 --> 00:00:59,710
OK, so we're selecting Interface where the agent Hosty calls one or more service because on that host

11
00:00:59,710 --> 00:01:01,540
I have a whole lot of interfaces.

12
00:01:01,870 --> 00:01:07,480
These are mostly DOCA interfaces and the S&P input that we set up and telegraphs returning the names

13
00:01:07,480 --> 00:01:09,520
of all the interfaces I can afford on the host.

14
00:01:09,520 --> 00:01:13,690
So this would be the same whether you had a meeting in Beirut or you'd have probably names for every

15
00:01:13,690 --> 00:01:15,130
single port.

16
00:01:16,060 --> 00:01:17,190
So this is what this is.

17
00:01:18,050 --> 00:01:20,250
I want to be at a group these is some kind of way.

18
00:01:20,490 --> 00:01:24,100
Now, you could say that this is perfect already, but it's not.

19
00:01:24,710 --> 00:01:32,750
For example, let's say we had, say, 100 interfaces on here and you had all selected this page would

20
00:01:32,750 --> 00:01:37,970
suddenly become quite slow to refresh and present and query.

21
00:01:37,970 --> 00:01:42,580
So you might want to go, OK, I want to see all of these ones.

22
00:01:42,590 --> 00:01:44,600
Right, so we can we can do that.

23
00:01:44,600 --> 00:01:46,030
We can select for a time.

24
00:01:46,070 --> 00:01:46,790
That's OK.

25
00:01:46,790 --> 00:01:52,130
But Value Groups Tags allows us to create extra grouping to the right of the dropdown.

26
00:01:52,130 --> 00:01:59,300
So I can say give me all the interfaces for my web servers or give me all the interfaces for my database

27
00:01:59,300 --> 00:02:00,860
service, etc..

28
00:02:01,040 --> 00:02:02,200
We're going to do that in this video.

29
00:02:02,210 --> 00:02:05,060
We're going to create a customized tagging.

30
00:02:05,310 --> 00:02:09,520
We're going to do that by creating custom input in a telegraph collector.

31
00:02:10,100 --> 00:02:18,170
So, okay, so I'm on my Ravana server where the telegraph collector is running and I can see that it's

32
00:02:18,170 --> 00:02:22,910
running a pseudo service telegraph status.

33
00:02:23,630 --> 00:02:24,520
OK, that's good.

34
00:02:26,560 --> 00:02:31,660
OK, so now let's open up the telegraph config and create this custom input.

35
00:02:32,590 --> 00:02:40,290
Pseudo nanahara atcc tell a graph telegraaf dot com.

36
00:02:43,180 --> 00:02:49,900
So inputs for CPU disk, IBM, net system, processor kernel and all the inputs we credit first and

37
00:02:49,900 --> 00:02:56,450
MP Damons in the early elections for a new import.

38
00:02:56,830 --> 00:02:58,180
This one is going to be.

39
00:03:00,650 --> 00:03:01,820
Input's exec.

40
00:03:03,490 --> 00:03:13,660
This allows me to run a S.H. file on the server itself, the commands it calls.

41
00:03:15,110 --> 00:03:24,140
And you put your name on your script here, use it for my script, our site, and you can run that script

42
00:03:24,140 --> 00:03:30,140
in and you can make a return, something that resembles a telegraph dataset.

43
00:03:31,980 --> 00:03:33,000
But I'm not going to do that.

44
00:03:33,030 --> 00:03:38,300
I'm just going to use the Echo Command to return it straight from the config file.

45
00:03:38,310 --> 00:03:47,850
So I'm going to first off, I'm just going to create some extra sittings, time out a course of second

46
00:03:48,330 --> 00:03:51,870
dot form that he calls.

47
00:03:53,250 --> 00:03:53,900
Blocks.

48
00:03:55,310 --> 00:04:01,200
OK, so the first example that I will return will be.

49
00:04:02,270 --> 00:04:02,960
Echo.

50
00:04:04,630 --> 00:04:15,400
Containers, my group will be Web, and the value for Web will be one of the interfaces in my dropdown.

51
00:04:15,730 --> 00:04:17,730
So I might drop down here.

52
00:04:17,740 --> 00:04:24,940
I got one called I.C.C., this one here that I'm going to put into a group called Web back on here.

53
00:04:24,990 --> 00:04:26,170
This is what we're doing.

54
00:04:26,170 --> 00:04:27,550
We're echoing a string.

55
00:04:28,040 --> 00:04:32,790
And Tyner's is the measurement that will appear in influx.

56
00:04:32,800 --> 00:04:39,550
DB you will have a K in it whose name is Web and it'll have a value being.

57
00:04:40,490 --> 00:04:49,400
This and because it's a string, I've wrapped it in this escape, but it comes here on the side, so

58
00:04:49,400 --> 00:04:56,330
this one command, I goes, it's just rather than calling a script on my server, I'm just calling Echo

59
00:04:56,780 --> 00:04:59,680
directly saw the configuration.

60
00:05:00,020 --> 00:05:02,260
So let's save that.

61
00:05:03,020 --> 00:05:03,740
Yes.

62
00:05:06,430 --> 00:05:09,280
Let's restart the telegraph service.

63
00:05:10,660 --> 00:05:16,150
OK, I can do a status to be sure, when.

64
00:05:19,690 --> 00:05:21,490
Let's go now back into Carafano.

65
00:05:21,580 --> 00:05:25,540
OK, so if I was to go to explore, explore.

66
00:05:28,250 --> 00:05:35,000
And I have an influx, DBI selected and select measurement, I now get a new measurement.

67
00:05:35,970 --> 00:05:43,410
The containers, that's the one we just created, and inside there we have a group and we credit the

68
00:05:43,410 --> 00:05:45,170
group called Web.

69
00:05:45,450 --> 00:05:52,050
There it is there and inside that we have a value and it's text.

70
00:05:52,050 --> 00:05:53,220
So I can remove that.

71
00:05:53,880 --> 00:05:56,190
I can remove the group.

72
00:05:57,680 --> 00:06:00,620
A select table and there we go, we have.

73
00:06:01,710 --> 00:06:09,960
Some values down the right there now to improve this, we've got to get one value going to aggregate

74
00:06:09,960 --> 00:06:11,190
that to being distinct.

75
00:06:12,780 --> 00:06:19,010
OK, so one value we can use this now, let's go into our dashboard now that I.

76
00:06:20,080 --> 00:06:28,990
Half created by the group's tax influx, Dbag Telegraaf and will now add the tag to the right of this

77
00:06:28,990 --> 00:06:32,050
dropdown for Web.

78
00:06:34,300 --> 00:06:36,290
There are variables.

79
00:06:36,410 --> 00:06:37,450
Let's open it up.

80
00:06:39,460 --> 00:06:44,890
He's my original query, I'm trying to tag values from interface with key if description, and since

81
00:06:44,890 --> 00:06:49,960
I have several hosts, I don't want to make this lecture any more complicated than it is.

82
00:06:50,200 --> 00:06:55,840
I'm just restricting it to one of the hosts being that one, which actually has a lot of interfaces

83
00:06:55,840 --> 00:06:56,180
on it.

84
00:06:56,470 --> 00:06:58,570
OK, so we've got multi value.

85
00:06:59,230 --> 00:07:00,460
We'll leave the all.

86
00:07:00,910 --> 00:07:08,020
But now, now we'll practice fairly groups tags and remembering that it is an experimental feature version

87
00:07:08,620 --> 00:07:10,510
six point four.

88
00:07:10,990 --> 00:07:15,910
OK, so a tags query is going to be a show tag.

89
00:07:15,910 --> 00:07:17,980
Values from Container's.

90
00:07:19,350 --> 00:07:25,470
Where the Cagle's group, we will just update that now and look at it.

91
00:07:27,160 --> 00:07:32,050
OK, so there we go, this web, but if I press, that doesn't do anything yet.

92
00:07:33,110 --> 00:07:42,500
It's going now add that query that will auto select, well, at least this one for now, clearly credit

93
00:07:42,500 --> 00:07:42,860
one.

94
00:07:44,610 --> 00:07:56,640
Variables select a distinct value from containers where the group equals the tag update, go back into

95
00:07:56,640 --> 00:07:57,150
here.

96
00:07:57,810 --> 00:08:00,240
Let's try this again if I click there.

97
00:08:00,250 --> 00:08:00,800
There we go.

98
00:08:02,020 --> 00:08:10,000
It's ticked, if I unticketed, it takes it away, let's group some more of these values back into.

99
00:08:11,340 --> 00:08:20,760
The configuration fall down where we created our custom inputs exec, we're going to echo some more

100
00:08:20,760 --> 00:08:21,510
lines.

101
00:08:23,580 --> 00:08:24,570
I'm going to echo.

102
00:08:25,850 --> 00:08:27,380
Pretty much the same lawn.

103
00:08:29,040 --> 00:08:36,210
Like, so sort of using a comma here to separate each line, this one still going to be Container's

104
00:08:36,240 --> 00:08:40,260
group web, but the value is different.

105
00:08:41,370 --> 00:08:45,990
The name of a different interface and that dropdown, that will be that one, they're.

106
00:08:47,210 --> 00:08:52,400
OK, so let's save that and see what that looks like, Triple X..

107
00:08:52,400 --> 00:08:58,090
Yes, a restart the telegraph service, OK.

108
00:09:00,180 --> 00:09:07,380
Let's check the status status is still good back into Ghafar now, it's safe where we are.

109
00:09:08,880 --> 00:09:13,380
This is going to explore and see what we get container's.

110
00:09:14,650 --> 00:09:16,960
A group he calls Web.

111
00:09:18,720 --> 00:09:20,860
Most of.

112
00:09:23,140 --> 00:09:24,090
Distinct.

113
00:09:26,810 --> 00:09:36,440
And we get to now in the list I i.c.c. and see for if I go back into our dashboard dashboard in flux

114
00:09:36,980 --> 00:09:44,240
and here if we select Web, we now get to select it on and off like that to describe two more groups.

115
00:09:44,240 --> 00:09:49,880
And we'll put this all into one of the three groups back on Telegraaf.

116
00:09:49,880 --> 00:10:01,160
Let's open up the configuration file, go down to the custom input here and we'll add some more lines

117
00:10:01,160 --> 00:10:04,850
for the rest of those interfaces or.

118
00:10:06,220 --> 00:10:11,050
OK, sir, I have three groups, Web DBE in cash now.

119
00:10:11,970 --> 00:10:21,000
And I have each of those interfaces, names have been put into a their group, and I this is just an

120
00:10:21,000 --> 00:10:27,180
example, it's control X years three start.

121
00:10:29,170 --> 00:10:30,520
Let's check the status.

122
00:10:32,820 --> 00:10:43,290
Very good, it's going back into Carafano, go into explore and see what we've got, select containers

123
00:10:43,290 --> 00:10:47,220
where group equals cash, TV or web.

124
00:10:47,760 --> 00:10:48,700
Let's have a look.

125
00:10:56,310 --> 00:10:57,150
Distinct.

126
00:10:58,410 --> 00:11:01,560
OK, so Cash DBE.

127
00:11:03,410 --> 00:11:04,310
And Web.

128
00:11:07,110 --> 00:11:12,120
They made have guessed three excellent, let's have a look at that inside the dashboard.

129
00:11:14,590 --> 00:11:17,810
OK, still on this one.

130
00:11:18,760 --> 00:11:21,600
OK, so let's update our variable here.

131
00:11:24,990 --> 00:11:27,180
Was Cagle's group date.

132
00:11:29,200 --> 00:11:39,060
OK, cash, Debbie Webb, slick cash, those three interfaces are selected by Slick Debbie, those three

133
00:11:39,070 --> 00:11:42,000
devices and Web is those two devices.

134
00:11:43,120 --> 00:11:43,720
There we go.

135
00:11:44,050 --> 00:11:52,300
So now if I have the problem where all is just way too many, I can now create a way to group.

136
00:11:53,760 --> 00:12:01,620
Hosts such as Cash or Davin Webb, that will give me all those ones that I've grouped, for example.

137
00:12:03,050 --> 00:12:07,040
I can group those using insects using the exact same method.

138
00:12:08,200 --> 00:12:16,260
That's a custom value group's tag using the influx, Debbie DataSource with the telegraph colectomy.

