1
00:00:00,840 --> 00:00:05,580
In this step we will investigate much more about world trade.

2
00:00:05,870 --> 00:00:13,050
How do I use bring good actuator where you seem just like everything else it's getting booed using an

3
00:00:13,070 --> 00:00:15,960
actuator is also really very simple.

4
00:00:16,490 --> 00:00:18,690
All that I need to do is good for America.

5
00:00:19,010 --> 00:00:20,550
And you have guessed it right.

6
00:00:20,570 --> 00:00:23,710
I just need to add stuff for actuator.

7
00:00:23,990 --> 00:00:30,830
So I'm copping the start of a verb and changing the starter name to actually after that it implies that

8
00:00:32,690 --> 00:00:34,210
I didn't start to fracture it.

9
00:00:34,220 --> 00:00:37,550
So what does the actuator bring in.

10
00:00:37,550 --> 00:00:43,040
Actually it actually brings in a lot of monitoring around your application.

11
00:00:43,220 --> 00:00:49,810
So in actuator you'd be able to read a lot of data about the application.

12
00:00:49,960 --> 00:00:52,880
Let's say you want to see water the beans that are configured.

13
00:00:53,060 --> 00:00:59,180
You want to see how or the configuration has worked you want to see how many times the specific services

14
00:00:59,190 --> 00:01:04,170
called you want to see how many times a specific service has failed.

15
00:01:04,370 --> 00:01:12,030
All that kind of stuff you can check in your actuator and all that I need to do to enable that is in

16
00:01:12,200 --> 00:01:19,550
something called an actuator in springboard start the actuator actually exposes a lot of the rest services

17
00:01:19,940 --> 00:01:26,310
and these services are compliant with the standard called had standard.

18
00:01:26,540 --> 00:01:34,480
And we would use a browser so that we can browse through the data which is provided by these services

19
00:01:34,710 --> 00:01:39,740
and then see for file browser it spring bitterest help browser.

20
00:01:39,740 --> 00:01:43,390
So it's spring data rest Hal.

21
00:01:43,530 --> 00:01:50,630
So you can take the project up the group ID should actually be data it offspring from a data spring

22
00:01:50,620 --> 00:01:52,310
that at least has a browser.

23
00:01:52,320 --> 00:01:58,330
So once we add dependency for that the whole browser would be configured among our dependencies.

24
00:01:58,330 --> 00:02:02,650
Now you can see all the dependencies in the independent It's been a good start actually it has been

25
00:02:02,660 --> 00:02:06,770
good actually to spend the rest have a browser that's cool.

26
00:02:06,800 --> 00:02:12,020
One of the important things to remember is that the actuator you are Lil's have been changing quite

27
00:02:12,020 --> 00:02:21,020
a lot across spring board release this spring boot one dart X the UL and was local host 88 slash actuator

28
00:02:21,410 --> 00:02:25,180
and later in the earlier versions of spring.

29
00:02:25,180 --> 00:02:32,300
Two point zero point zero the milestone is this it was last 88 slash application.

30
00:02:32,520 --> 00:02:32,950
No.

31
00:02:32,960 --> 00:02:38,300
Again we are back to look closely at the slash actuator.

32
00:02:38,300 --> 00:02:41,390
So this is the you are going to launch the actuator.

33
00:02:41,390 --> 00:02:47,700
I mean this is after two point zero point zero dot release the released localhost ADHD slash.

34
00:02:47,750 --> 00:02:54,260
Actually it does not work and probably you can you know close ADHD Sless application right once you

35
00:02:54,260 --> 00:02:56,930
type in local host ADHD Slish actuator.

36
00:02:56,930 --> 00:03:02,900
This is what you'd be saying if you're using anything rated to point to the point really as you'd see

37
00:03:03,110 --> 00:03:05,200
three Juelz coming in.

38
00:03:05,330 --> 00:03:05,640
Right.

39
00:03:05,640 --> 00:03:08,410
So these are the helmet and the informed.

40
00:03:08,420 --> 00:03:12,930
So if I click help you'd see they held up the applications up and running.

41
00:03:12,950 --> 00:03:13,740
That's cool.

42
00:03:13,800 --> 00:03:14,580
Right.

43
00:03:14,600 --> 00:03:22,110
And the other one is the Imphal there's not a lot of info here right now if there is a lot of stuff

44
00:03:22,260 --> 00:03:30,210
that actuator for whites to enable that you'd need to configure but how do I do that the way you can

45
00:03:30,210 --> 00:03:39,990
with that is you are piggishness properties and type in management endpoint of web exposure that include

46
00:03:40,370 --> 00:03:47,700
a sequel to the sequel to what we are doing in here is we are enabling the Verba exposure.

47
00:03:47,780 --> 00:03:52,730
So the exposure or DP of all the management in points.

48
00:03:52,740 --> 00:03:59,380
One of the important things to remember is when you enable a lot of tracking a lot of auditing.

49
00:03:59,550 --> 00:04:03,260
What would happen is there would be a performance impact as well.

50
00:04:03,270 --> 00:04:09,440
One of the recommendations is to identify which of the things that you would want and only enable those.

51
00:04:09,570 --> 00:04:11,280
But for now we are taking a shortcut.

52
00:04:11,280 --> 00:04:17,400
We are enabling everything management points web exposure that include physical stuff all the things

53
00:04:17,400 --> 00:04:23,620
you would already know is the fact that if I type in controlled space or comment space you see a drop

54
00:04:23,740 --> 00:04:24,460
coming in.

55
00:04:24,720 --> 00:04:28,140
This is because of something called Spring tools plug in.

56
00:04:28,140 --> 00:04:34,080
So theres an eclipse plugin called Spring tools so you can see that I can see what develop properties

57
00:04:34,080 --> 00:04:39,750
it all to validate the values of these properties and things like that we configured management or the

58
00:04:39,760 --> 00:04:45,990
endpoints that we have got exposure to not include is just to save it and restart your application to

59
00:04:45,990 --> 00:04:51,460
make use make sure that you stop and start your application and go and refresh the actuator.

60
00:04:51,550 --> 00:04:56,870
You would see that now there are many more articles which are present in here.

61
00:04:56,950 --> 00:05:00,150
So you would see a lot of RL which are coming up in here.

62
00:05:00,150 --> 00:05:05,060
The other thing we can type in this localhost ADHD we have already added in the whole browser.

63
00:05:05,100 --> 00:05:07,270
Let's zoom out a little bit.

64
00:05:07,500 --> 00:05:12,960
So we added in the hull brothers so if you type in localhost ADHD you go to the browser and we can use

65
00:05:12,960 --> 00:05:19,010
help browser to browse through the actual as I can type in slash actuator in here.

66
00:05:19,230 --> 00:05:24,120
So all that I need to do is type in slash actuator that you are in for the actual in here and I can

67
00:05:24,120 --> 00:05:29,200
start looking through all the things related to actuator directly from here.

68
00:05:29,370 --> 00:05:37,090
Let's look at a few of these things that the actuator is exposing the oddity Ventas related to security.

69
00:05:37,170 --> 00:05:40,850
Or did you want to show that users were properly validated.

70
00:05:40,860 --> 00:05:44,750
How many people failed the authentication and all that kind of stuff.

71
00:05:44,760 --> 00:05:46,470
Beans is an interesting thing.

72
00:05:46,500 --> 00:05:51,680
And picking beans they Sutro all disappearing beans that are configured right.

73
00:05:51,720 --> 00:05:58,320
Praying is a dependency management playbook and it manages all the beant it creates all the components

74
00:05:58,320 --> 00:06:03,070
for you and you can look at all the beans that spring has created for you.

75
00:06:03,090 --> 00:06:05,890
You can also check the health of the application its up.

76
00:06:06,030 --> 00:06:11,610
Conditions is another interesting thing as we have this because it knows being good is all about auto

77
00:06:11,610 --> 00:06:12,760
configuration.

78
00:06:12,780 --> 00:06:18,540
There is a lot of stuff that to bring boot or to configure conditions so it exposes the positive matches

79
00:06:18,630 --> 00:06:25,340
which are all the conditions that matched as well as if you search for negative matches the conditions

80
00:06:25,380 --> 00:06:26,890
which did not match.

81
00:06:26,970 --> 00:06:31,770
So it would draw a list of bins which are configured which are not contrie good and all that kind of

82
00:06:31,770 --> 00:06:32,450
stuff.

83
00:06:32,460 --> 00:06:35,330
You can also get the details of configuration properties.

84
00:06:35,370 --> 00:06:40,680
And we don't mind loggers which are on pre-code You can also get them to read them.

85
00:06:40,680 --> 00:06:47,970
And also you can get a few metrics as well so if you go to the metrics I can see a list of metrics which

86
00:06:48,060 --> 00:06:49,490
are valid.

87
00:06:49,560 --> 00:06:52,850
So let's say I would want to find out how much memory is used.

88
00:06:52,980 --> 00:06:58,970
So I can say I can copy this JVM memory used and add it in here.

89
00:06:58,980 --> 00:07:02,160
So slash GBM maybe got used to go.

90
00:07:02,170 --> 00:07:06,590
You would see the value of the amount of memory that is being used.

91
00:07:06,750 --> 00:07:09,760
The same thing can be done with other metrics as well.

92
00:07:09,780 --> 00:07:16,050
So if I go back to the actual metrics you can see that there are a wide variety of metrics that are

93
00:07:16,050 --> 00:07:20,760
being exposed in here C.P usage and all that kind of stuff.

94
00:07:20,820 --> 00:07:27,540
If I go back to the actuator I can also see this stuff do to us that is an interesting thing called

95
00:07:27,750 --> 00:07:31,490
HTP trees which should all the requests that were executed.

96
00:07:31,740 --> 00:07:34,680
So it shows that this is a request which is coming in.

97
00:07:34,680 --> 00:07:37,050
Somebody tried to access the actuator.

98
00:07:37,050 --> 00:07:40,550
This is the response which when bag the time taken is so and so.

99
00:07:40,620 --> 00:07:46,080
So you can see all the details of the previous requests that were executed.

100
00:07:46,200 --> 00:07:50,000
The important thing is to remember that this would have a performance impact.

101
00:07:50,010 --> 00:07:52,100
Right you cannot enable it in protection.

102
00:07:52,100 --> 00:07:58,650
This is useful to raise a few requests but obviously you would not want to enable it to decrease in

103
00:07:58,650 --> 00:08:04,700
production for all that it was the last one which is present in here is the mappings mappings shows

104
00:08:04,710 --> 00:08:10,340
all the different things that are mapped to our eyes right over and over.

105
00:08:10,340 --> 00:08:14,030
We are creating a web application or a web service.

106
00:08:14,190 --> 00:08:20,670
We are mapping a lot of it when we are adding the dependency on actuator we add a few others as well.

107
00:08:20,810 --> 00:08:23,960
So you can see all the mappings in here.

108
00:08:24,080 --> 00:08:30,140
The idea behind this week was to quickly give you an overview of what are all the things you can do

109
00:08:30,410 --> 00:08:36,710
with actually if some of the information you've seen here is complex and you are finding it difficult

110
00:08:36,710 --> 00:08:37,290
to understand.

111
00:08:37,370 --> 00:08:38,390
No problem at all.

112
00:08:38,390 --> 00:08:44,330
The most important thing to understand is in future if you need any such information there is one place

113
00:08:44,330 --> 00:08:47,950
you can go to that actuate and then the next step.

114
00:08:48,000 --> 00:08:48,310
Barbara.

