Session - 8- Datadog APM Monitor Java Application using Tomcat - Part1 — Transcript
Full transcript
- 0:00foreign
- 0:00[Music]
- 0:10School in this video tutorial we are
- 0:13going to learn about data dog
- 0:15but before we begin let me inform you
- 0:18few things about us devops school is one
- 0:20of the leading platform which offers
- 0:22devops cloud and containers technology
- 0:24training and certification programs for
- 0:26freshers and established professionals
- 0:27who wish to update and consolidate their
- 0:29skills in the dynamic it scenario we
- 0:31ensure that the training Solutions are
- 0:33delivered by highly experienced domain
- 0:35experts with practical working
- 0:36experience in various verticals check
- 0:39out the dates and enroll with us for our
- 0:40upcoming batches for more info link and
- 0:43contact details are mentioned in the
- 0:44description below so question is how to
- 0:46set up APM monitoring for Java based
- 0:49application but inner Linux so first
- 0:51thing our app server will be Tomcat
- 0:53install Tomcat install tomcat and
- 0:57start talking
- 0:59okay that's the step number two one step
- 1:02number two
- 1:03you will do you will do install
- 1:08data dock
- 1:10APM agent
- 1:13okay mind it I said APM with intention
- 1:16this agent is different okay so now step
- 1:19two you will have to do this uh let's
- 1:22make it step one here step two
- 1:26and this make it step three so step two
- 1:29what step one what you have to do
- 1:30install data.g so guys there is a
- 1:33difference between the datadog agent and
- 1:36datadog APM agent so here I said very
- 1:39clearly APM agent will be a code
- 1:41actually and this agent which is nothing
- 1:44but the tools which is running as a
- 1:46demon correct now
- 1:48I hope you remember all of you
- 1:51yes yes so this is the install datadog
- 1:54APM agent fourth one step four uh uh
- 1:59install deploy deploy one app one app uh
- 2:05in Tomcat okay because remember that
- 2:09traffic will be generated against the
- 2:11app only right so you have to deploy one
- 2:13app in the Tomcat step number five
- 2:17generate traffic
- 2:19generate traffic now this is challenging
- 2:23because you know you know guys uh if you
- 2:25generate 5 20 30 traffic 30 times if you
- 2:28click or 100 times if you click then
- 2:31nothing is going to happen none of the
- 2:33graphs will be filled properly you will
- 2:35not be able to enjoy the real time
- 2:37experience and all so what we do in this
- 2:39case so in this case I am going to
- 2:41generate traffic using J meter
- 2:45okay so now this J meter is Apache
- 2:48product it's a free open source everyone
- 2:50uses for the performance testing so I'll
- 2:53be using J meter now we'll say Rajesh I
- 2:56don't know the J meter I don't have a
- 2:57setup this that and all and it might it
- 2:59might require lots of time to set up so
- 3:01what do we do in this case so are you
- 3:03going to set up a j meter yes those who
- 3:05are interested to set up a j meter you
- 3:07can do that but I can help you here
- 3:09because I have a j meter
- 3:12I have a j meter uh in my machine so I
- 3:16will use your IP address to generate a
- 3:18traffic for you because all IP address
- 3:19is a public IP address accessible around
- 3:22the globe so I can also generate a
- 3:24traffic for you also and for my cell
- 3:26phones
- 3:27step 5 all of you are okay with it
- 3:34yes
- 3:35okay and then finally step six and this
- 3:38is a major work actually learning
- 3:41learning APM dashboard APM dashboard
- 3:45this is a major work remember that what
- 3:48was your objective in APM discussion
- 3:50which request which requests the
- 3:54response is more than what is your
- 3:57threshold and you need to find out track
- 3:59that request and find out the reason for
- 4:02it why
- 4:04this particular response time for this
- 4:06particular request is taking more than
- 4:08this type
- 4:10so learning APM dashboard and that's the
- 4:12last one so if your pseudo code is
- 4:15confirmed if you understood that then I
- 4:17would like to set some visualization in
- 4:19your mind also so during the them lab
- 4:22you will not forget so here I am not
- 4:25doing anything great this is my Linux
- 4:28box and then I am installing Java here
- 4:32okay Java so here for Tomcat you need to
- 4:35have a Java also and then third thing
- 4:38I'm installing the Tomcat here
- 4:41so this is my Linux machine
- 4:45this is my Linux machine this is the
- 4:48Java GRE
- 4:49W Java runtime environment
- 4:51okay and this is the tomcat and my
- 4:54applications will be run by Tomcat now
- 4:57uh this is my applications I'll make it
- 5:01round okay and this is your applications
- 5:05okay so here you have to install the
- 5:08data doc agent so data dog agent will be
- 5:12installed at the Linux level which you
- 5:14have it you've done it and then uh APM
- 5:17agent I need to install at the Tomcat
- 5:19level so this is a tomcat level this is
- 5:22the APM agent I'll change the color APM
- 5:25agent
- 5:28a this is the data dog API region so now
- 5:31what will happen you know what this is
- 5:33the traffic which is coming from outside
- 5:35and they will hit the Tomcat at Port
- 5:38number so any request
- 5:42which is against the applications the
- 5:44response will be generated and this guy
- 5:47will be capturing everything and sending
- 5:50this to
- 5:51agent which is running in the same
- 5:53machine and after that this agent will
- 5:55set to datadog and you
- 5:59this is you you will analyze all the
- 6:02traffic and see that which is a problem
- 6:05where is a problem is not a problem
- 6:07understood this whole flow
- 6:13yes yeah so this is setup I am trying to
- 6:17do that so now that for that where is
- 6:20the instructions so why this pop-up is
- 6:22not going
- 6:24anyone have idea this from the top how
- 6:26can we move to the left or right this
- 6:28pop-up
- 6:30I'm really getting annoyed sometimes
- 6:34let me find out Solutions Okay small
- 6:37dots uh from there you can move them
- 6:39watch option
- 6:40or there will be small dots yeah I I
- 6:43tried many times actually let me see
- 6:46that just saying give me two seconds
- 6:47View
- 6:49I died option should be there
- 6:56okay not coming
- 6:58okay so yeah so it has gone now so here
- 7:04guys this is the tutorial so first thing
- 7:07how to install agent you know that
- 7:10how to install Jr Java so guys uh one
- 7:13request uh this Java I want you to stall
- 7:1811 okay so now what I'll I'll do I'll
- 7:21not ask you to change that because many
- 7:24of you will run the command blindly so
- 7:26Java install so because you are using
- 7:30Centos
- 7:32right now so I can immediately say this
- 7:36command will work for you
- 7:38and this is the command okay so now I'm
- 7:41not going to request namely I should
- 7:43change this
- 7:47hmm
- 7:49this is for send twice this will work
- 7:52for Centos one
- 7:54sentence and for
- 7:58Ubuntu let me let's say if you want to
- 8:00try in future then this command will
- 8:03work for Ubuntu
- 8:05in this command
- 8:09okay so I'm just changing don't run
- 8:11command blindly and done
- 8:14okay so now eight is a for the latest
- 8:18version of Tomcat is a problematic so I
- 8:21don't want to face the error for that I
- 8:23change the Java so okay so this is
- 8:25command I will install to install the
- 8:27Java now this command uh this section
- 8:30will help you to install the Tomcat okay
- 8:33now here is a problem
- 8:35this command is a problem what problem
- 8:37so guys this command basically you know
- 8:40what uh this URL of Tomcat it always
- 8:44changes actually because of mirror
- 8:46changes and all it always changes so
- 8:49this URL will not work I know that so
- 8:51what you need to do you need to go every
- 8:54week you have to change this URL so you
- 8:57have to go to this and you have to tell
- 8:59what is a new URL so how do you get a
- 9:01new URL here it is this is the one of
- 9:04the way to get the new URL copy and in
- 9:07fact I'm modifying for all of you not
- 9:10only guiding but modifying because
- 9:13you will blindly run this command and
- 9:15you will end up this error so here this
- 9:18command
- 9:20this changes this URL cannot be fixed so
- 9:23you have to have that knowledge
- 9:27so here this is my uo command and this
- 9:32is my
- 9:34replacement
- 9:35and here done
- 9:38now because this URL will change so this
- 9:41URL will also change okay so here what
- 9:44you are doing let me explain you the
- 9:46command here you are downloading the
- 9:49duplicate installing the wget and unzip
- 9:51utility after that going to the opt
- 9:54after the downloading the package and
- 9:56after that unzipping the package are you
- 9:59comfortable with these commands
- 10:02yes okay now after that you have to go
- 10:05to the data doc site okay and data
- 10:08Dockside this part I'll show you that
- 10:10this part I'll show the demo after that
- 10:13this process is basically to install the
- 10:16APM agent download DD Java agent so this
- 10:21is jar file why because I am using Java
- 10:24project but if you use the some other
- 10:25different technology you have a
- 10:27different different uh packages for API
- 10:29major so now where is storing in opt and
- 10:33giving her permission so this is going
- 10:34to opt downloading the Java APM and
- 10:38giving this executable permission okay
- 10:40so this is the step number four after
- 10:43that you need to inform this is a very
- 10:46important steps okay and these steps you
- 10:48can do if you know Java and Tomcat you
- 10:51can know you can do five different ways
- 10:53but this is the one of the easiest way I
- 10:56am writing it so what you have to do you
- 10:59have to go to this file
- 11:01now we'll say immediately you will run
- 11:04this command and you want to go to this
- 11:05file then you say Rajesh this command is
- 11:08not working so basically you change the
- 11:10directory here so you have to change
- 11:13everywhere
- 11:15you have to change everywhere so this
- 11:17directory will be the new directory and
- 11:19after that you have to modify this code
- 11:21and after that this command you need to
- 11:24run somewhere in the top of the file of
- 11:26that linear.sh now we say Rajesh what
- 11:29exactly I am adding this code so you
- 11:31know guys this is the real
- 11:34code where you are informing your Tomcat
- 11:37or Java saying that hey add this APM
- 11:42agent in the runtime because remember
- 11:44that if you do not add this APM in the
- 11:47runtime then whatever the traffic is
- 11:49coming to the Tomcat an application this
- 11:51guy will not be able to come to know
- 11:52this is called setting up in the class
- 11:53path if you know the other Java a little
- 11:55bit so are you comfortable with this all
- 11:57of you
- 12:03hello
- 12:05yeah so I am saying uh this is a IPM jar
- 12:09but you need to set in the Tomcat
- 12:11environment so that runtime it can
- 12:13detect your application traffic and for
- 12:15that this is the one of the approach
- 12:17modify this file put this line and it
- 12:20will be added now what you are adding so
- 12:22this is the path of the jar file which
- 12:24you downloaded here
- 12:26look at this okay so you downloaded
- 12:32here under opt now what you are saying
- 12:36profiling enabled logs enabled
- 12:39Trace enabled what is the name of the
- 12:42service service you can name it whatever
- 12:44you want an environment this service and
- 12:46environment user application name
- 12:48and between which environment is running
- 12:50after that you are going to start the
- 12:53Tomcat so how do we start the Tomcat so
- 12:56here
- 12:58change the path
- 13:00this is the location you'll go give the
- 13:03full permission
- 13:04startup.sh and validate if you are
- 13:07getting the the files like this digital
- 13:10agent in the output
- 13:12then go to the website which is 8080
- 13:14example applications and then your
- 13:18application up and running and finally
- 13:21generate a traffic
- 13:23so application I'll talk about the some
- 13:25perspective here but did you understand
- 13:27all these steps steps
- 13:32so let me do that so guys I'm doing
- 13:35little slow
- 13:36but please focus on it
- 13:39so let's start with it agent
- 13:41installation is done or not so done
- 13:43where is my machine by the way my
- 13:45machine
- 13:47IP address
- 14:01this is my machine okay
- 14:02so
- 14:05I'll write it somewhere here
- 14:11decision so let's log into this
- 14:19Earth
- 14:32so it starts I'm going to stops all your
- 14:35machine stops at 5 PM so can't we have
- 14:38our own machines through our AWS account
- 14:41and we can use our key to practice
- 14:43everything
- 14:45uh yes this is possible you can have
- 14:47your own account also AWS will if you
- 14:51create your own account then minimum
- 14:53configuration you can get it from them
- 14:55also like this some of them are free but
- 14:58if you by mistake if you go for a little
- 15:00bit higher configuration then
- 15:02automatically everything mentioned in
- 15:04there right what is chargeable and what
- 15:06is not chargeable so
- 15:09uh yes if you that's what I said if you
- 15:12are comfortable with it then you can go
- 15:15ahead and register your your own account
- 15:17that's not a problem
- 15:19thank you yeah uh you have a if if you
- 15:23have a new credit card and you can use a
- 15:25new email ID so then in that case you
- 15:28will get a 12 months free but but only
- 15:32the basic one which you can use for AWS
- 15:34not for running any application
- 15:36okay because the RAM and CPU is very
- 15:40less so you cannot run any application
- 15:41but you can learn AWS for sure so but if
- 15:45you go for the little higher
- 15:46configuration then you have to pay for
- 15:48it to recharge you uh on your credit
- 15:51card at the end of the month per hour
- 15:53basis they charge you
- 15:58okay so here
- 16:03uh so this is the machine so first thing
- 16:06did we install the datadog agent
- 16:10so installation done after the Tomcat so
- 16:13I am following the same command so that
- 16:15way also I'll be keeping validated all
- 16:18commands are working as as per the
- 16:22things or not and in front of you I am
- 16:23doing it so there should not be any
- 16:25problem so first thing I am going to
- 16:27install the because my machine is sent
- 16:29to us I'm going to show all the open GDP
- 16:31so for that
- 16:34because I'm a root I can install
- 16:35anything
- 17:02okay so now this is the
- 17:05sent to us after that this is done after
- 17:09that I have to download the Tomcat so
- 17:12let's let me install first this utility
- 17:14clear the screen
- 17:17and did I make a mistake see there is a
- 17:20mistake here
- 17:22so mistake is
- 17:24apt this will this command will work in
- 17:26the Ubuntu not incent to us so what you
- 17:29need to do anyone have that idea
- 17:34anyone have idea
- 17:37is it called
- 17:39not girl you can just change this this
- 17:42is in Ubuntu it will work in Ubuntu
- 17:45for send to us it's just young we have
- 17:48been doing from last two days right
- 17:51yum
- 17:54different utilities
- 17:56for the different operating systems this
- 17:59is our thanks so this is sentos I will
- 18:02install this command
- 18:05and
- 18:08now after that I'll go into the ctopt
- 18:12clear the screen
- 18:13now I will download this URL this URL
- 18:16will be active for today at least okay
- 18:18so that's a good thing
- 18:21now you see that here
- 18:25it's got downloaded very fast so I am
- 18:27not able to digest it just give me
- 18:29videos
- 18:30yeah this is good so yes I download it
- 18:33actually
- 18:34so
- 18:35that is done after that I am going to
- 18:38unzip it so this command will help me
- 18:41unjust and now if you see that LS see
- 18:44this is the zip file which I injected
- 18:46this one so I got this so This step is
- 18:49clear all of you
- 18:52yes okay now after this I'll go to the
- 18:56APM website API means
- 18:58um data dog website so where is the data
- 19:01dog website here it is
- 19:03login
- 19:07and here I have a two machines so find
- 19:11out this place this is for eBay Watchdog
- 19:14this for you friends this is for
- 19:16dashboard this is for infrastructure
- 19:19this is for alerting monitoring and all
- 19:21this is for Matrix exploration this for
- 19:24integration this is for Apu did you see
- 19:27after integration you have again
- 19:33hello yes yes yeah I'm just asking
- 19:37multiple times uh you some of you might
- 19:40get irritated but you know what uh this
- 19:43questions will come back to me so I'm
- 19:46just feeding that uh with intention
- 19:48saying that you see you must see that so
- 19:51some of you are if you are not focusing
- 19:52then you must see that so that's the
- 19:54reason so some of you if you're feeling
- 19:56irritation uh please forgive me for that
- 19:58so yeah so APM Services service map
- 20:03traces error tracking profiles many
- 20:06things are there so this is a APN so can
- 20:09we click on this APM service catalog or
- 20:12this this this has come newly actually
- 20:14okay so click on services
- 20:18and here you see that I don't have any
- 20:21Services right now actually if I go for
- 20:23the little bit more uh days and all
- 20:26maybe week or month I'll have some
- 20:28services but I don't want to show that
- 20:30services to you because that's a past of
- 20:32part of last session
- 20:34so there's no services
- 20:36so guys get comfortable
- 20:39now you need to when you are in the
- 20:42world of APM you should be very very
- 20:45much expert in the runtime environment
- 20:47okay runtime because if you cannot do in
- 20:51simple way you cannot do APM without
- 20:53knowledge of runtime environment like
- 20:56app server web server database server
- 20:58language is run and GRE jvm python
- 21:01virtual virtual and virtual environment
- 21:04and also if you think you cannot because
- 21:06it required because I said right it runs
- 21:08with a code level okay so now these are
- 21:11the filters actually grid filters are
- 21:13available if you have too many services
- 21:15right now I have none but in reality you
- 21:17know what you'll have hundreds of
- 21:19services hundreds I said some of them
- 21:22will be web services some of them will
- 21:24be database Services some of them will
- 21:26be cache like mm memcache and all some
- 21:28of them will be function function means
- 21:30anyone what what does that mean function
- 21:34foreign
- 21:41function means have you heard about this
- 21:43Lambda serverless
- 21:46anyone
- 21:48no we heard him AWS yes yes AWS Lambda
- 21:52serverless yes that's the function I am
- 21:54talking about and here we are talking
- 21:56about end custom so these are the type
- 21:58of applications right now my application
- 21:59is uh is a tomcat which is a web-based
- 22:03application so what to do so I'll go and
- 22:05right side you see there's an option
- 22:07called add services but you know what
- 22:09for you you not have this one uh you
- 22:12will have a get started options
- 22:13something like this
- 22:16uh get started here this option you will
- 22:19have it by default when you click on the
- 22:21services no this page you will get it
- 22:23this page
- 22:24yes so this is the starting page
- 22:27actually for the new account but mine is
- 22:29not new account few days older account
- 22:31so I have already used for the EPM so
- 22:33for me when I click on the services then
- 22:36I'll have this account so I can click on
- 22:38the add services and it will take me to
- 22:40the same page actually see
- 22:42okay so don't get confused now here
- 22:47now they are asking you hey your
- 22:50application is running on host or
- 22:52container or serverless so by the way
- 22:55can you please help me which one I
- 22:56should select where is my application is
- 22:58running
- 22:59post host so you may so guys steps will
- 23:03change for the container and serverless
- 23:05mind it in fact each programming
- 23:07language is different different steps
- 23:09are there so I will select the host base
- 23:12now they'll ask you hey have you
- 23:14installed the agent and all so yes we
- 23:16all did it so that's okay and please
- 23:19read it be slow don't rush step number
- 23:21one step number two and like that now
- 23:24they're asking you hey what is your
- 23:25programming language for which you want
- 23:28to set up APN of course we know that
- 23:30Java but here if someone is curious to
- 23:33know what are the support so your python
- 23:35Ruby go no net and PHP and custom
- 23:38languages are also there okay so Java
- 23:41now the moment you click on the Java or
- 23:44python or Ruby they will give you
- 23:46different steps of instruction so now
- 23:48you see that here um
- 23:51for Java is a jar file but if you see
- 23:53the python this is the paper package for
- 23:56the Ruby it's a gem package for the go
- 23:59this is the package which you have it so
- 24:02different different packages which we
- 24:03have dot net
- 24:06dotnet these are the package executable
- 24:10actually you'll get it MSI installer.no
- 24:13okay so different different packages so
- 24:15for me because it's Java
- 24:19jar file okay so now this command
- 24:23actually if you locate it in my
- 24:25instruction documents
- 24:28here
- 24:31CL this is the same command one command
- 24:34I added extra you know what because uh
- 24:37permission problem will be having so I'm
- 24:39giving the full permissions so this is a
- 24:41real command the logic
- 24:43understood so far
- 24:48okay so I will do my steps
- 24:52because here you have some additional
- 24:54working commands so I'll go to the opt
- 24:59I am in and I'll download this guy
- 25:02this is the APM agent
- 25:07and you see that download is happen now
- 25:09LS see this is the file now I'll set the
- 25:12permission
- 25:14for this file 75577
- 25:17now this file that's all so this work is
- 25:19done I got APM downloaded now this is
- 25:23called instrument in your application I
- 25:26hope you remember the instrumentation
- 25:27keyword I've been using uh in the agent
- 25:30discussions also so instrumentation is a
- 25:33process where what you do you you keep
- 25:35some code inside your code and that will
- 25:40track the entire activities and send
- 25:43back to their some backend
- 25:45so here this call instrumentation
- 25:47process so now am I using this
- 25:49instrumentation process so actually no
- 25:52what exactly this is then you know guys
- 25:55this is just for the you know hello
- 25:57world program
- 25:58real time you won't run the application
- 26:01like that so here they're saying hey if
- 26:03you want to try the EPM then do one
- 26:05thing run the one any application look
- 26:07at this very carefully run any any
- 26:10applications
- 26:11and jar file and load this jar file in
- 26:14the class path and create traffic and
- 26:17you should start APM immediately but I
- 26:20am not doing it I'm not doing it then
- 26:22what so I'm doing Tomcat I'm in
- 26:25production oriented oriented web Pro
- 26:27like Tomcat jbos web logic you know then
- 26:31you will say Rajesh where is the process
- 26:32for that there's there should be steps
- 26:34for that so these steps you won't get it
- 26:36you have to go data doc
- 26:40APM
- 26:42monitoring just click on it official
- 26:45documents here you have
- 26:48no no no
- 26:49this is not
- 26:54official documents here you are
- 26:57so now here you have to decide what you
- 27:00want Java click on it
- 27:03now what is your application runtime
- 27:05environment so select the container
- 27:08these all are options available Lambda
- 27:12Lambda is only one option and other
- 27:14environment you see here
- 27:16other environments scroll down
- 27:19a little bit and see are you running the
- 27:21Java application with springboard Tomcat
- 27:24JBoss Jetty Westfield so for every
- 27:28options you have our tutorials for us so
- 27:30you have to try it out right now one of
- 27:32which I'm showing you this is the term
- 27:34correct
- 27:36are you understanding all of you
- 27:40yes
- 27:41so remember that so here I did
- 27:46I need to do this installation data
- 27:48document how to do that so for this this
- 27:51page will not help
- 27:53this page will not help you but what you
- 27:55can do service now a service name you
- 27:57can call it so what service name you
- 27:59want to call it let's set above School
- 28:02and what is this
- 28:05[Music]
- 28:05um
- 28:08what app which is let's say chat app no
- 28:11chat I might have used it uh suggest me
- 28:15something some servicening
- 28:19chat have used it mail I have used it uh
- 28:24Bank
- 28:26correct so this is my service name
- 28:29okay and which environment is running
- 28:31production
- 28:33so you see that the moment I fill this
- 28:34one up then here you have a
- 28:38automatically populations but this I'm
- 28:40not going to use it is for the hello
- 28:42world program kind of thing now uh
- 28:45virgin and all you can feed it
- 28:48version and all you can feel it so this
- 28:51is something which you can try
- 28:54uh but how to feed the Virgin right now
- 28:57uh I want to
- 29:00feed manually so I'll tell you how to
- 29:02feed it and you know uh
- 29:06this is also you can enable it uh spans
- 29:10logs monitoring but right now not
- 29:12getting into that you can also do some
- 29:14configuration the profilers and if
- 29:17you're a Java programmers you'll
- 29:18understand the profiling and security
- 29:20monitoring and all this thing so right
- 29:22now I'm not enabling none of this
- 29:24so what I'm doing basically so just I
- 29:27showed you and that's all the journey
- 29:30for for for
- 29:32APM to understand and to know all this
- 29:36process step one step two step three
- 29:38step four but after that you'll have to
- 29:40go back to the my documents so here
- 29:44this is the method I did catalina.sh
- 29:47which is this file and add this one now
- 29:51I want you to
- 29:54focus on this code so what we are doing
- 29:57where is the agent are you having agent
- 29:59in the
- 30:01opt yes I am having it and you have
- 30:04given permissions and all yes so do you
- 30:06want the profiling to be enabled yes
- 30:08true false whatever it is do you want
- 30:10the log injection true do you want
- 30:12Services what is the service name so
- 30:14type of school we decided what was that
- 30:16bank
- 30:18that's the service name what is
- 30:20environment that is so environment is
- 30:22prod we decided right you can name it
- 30:24whatever these are the Tag actually
- 30:26right okay these are the tag so how do
- 30:29we feed the virgins actually which which
- 30:32application version you are deploying so
- 30:34I am deploying the DD version
- 30:38and 1.0
- 30:41okay
- 30:42so are you comfortable with this code
- 30:44all of you
- 30:49yes but then we'll talk about this uh
- 30:52devops School Bank comment that service
- 30:54service something that we have to
- 30:55mention on our own right
- 30:58so that's what I'm mentioning you know
- 31:00this is my name
- 31:01this software which I'm I'll be running
- 31:03that named with
- 31:05this one
- 31:07okay
- 31:10means application simple
- 31:13okay fair enough yeah
- 31:15so yeah many things you can add it but
- 31:18not complicating right now this is
- 31:20sufficient so what do we do so I'll go
- 31:22to my catalina.sh
- 31:26and
- 31:27where is that so okay I instead of
- 31:29blindly going for that I am going one by
- 31:32one so there is a tomcat this is the one
- 31:35Tomcat
- 31:38and where's the bin here it is
- 31:42and here there is a catalina.sh here
- 31:46so this is the file I want to modify so
- 31:48directly I can do it like that so
- 31:51now this file these are all our comments
- 31:54okay little bit have patience let us
- 31:56call down
- 31:57okay let us fall down
- 31:59and um
- 32:02you should read if you are in a run SRE
- 32:05team actually this is a almost important
- 32:08information you have it about the target
- 32:10okay so here if somewhere here somewhere
- 32:13maybe esack or something or maybe here
- 32:15also you can go insert create some space
- 32:19and feed this line
- 32:23I added a virgin I hope you'll remember
- 32:25that
- 32:26I just I did not add in the example over
- 32:29there
- 32:31that's all
- 32:33so this I added this line and then save
- 32:36it WQ that after that what you need to
- 32:39do after that I think this is done and
- 32:42after that you you are doing this one
- 32:45and give this permission you I'm already
- 32:47in this directory actually okay so I'm
- 32:50giving this permission
- 32:54done and you see that all have got a
- 32:57executable permissions and then finally
- 33:00this command I will start
- 33:06okay so now you know what this they are
- 33:09saying you have a some syntax issues in
- 33:12the catalan.sh now I don't know how come
- 33:15I introduce the issues but I will check
- 33:18and
- 33:22syntax issues where is that
- 33:25okay you only find out I'm not going to
- 33:27find out because I know that you're
- 33:29going to come back on to me on this
- 33:35where is the syntax is we have given uh
- 33:38environment as production there here no
- 33:41that's a tag no I can give it anything
- 33:42whatever I want I want x y g whatever
- 33:46is a problem then
- 33:55anyone noticed
- 34:01yeah I guess after plot there is a
- 34:05this one is a problem yes I copied paste
- 34:08it so now this is the right line so I'll
- 34:10just go and modify that file one more
- 34:13time
- 34:15thank you
- 34:23and paste it
- 34:25save it and finally
- 34:28started started how do I validate so
- 34:31there's a PS command Linux command you
- 34:33can use it this command
- 34:35okay so validate if it's DD agent got
- 34:39loaded in the environment or not so see
- 34:41here it's loaded so everything is okay
- 34:44so this step is also created done
- 34:47so so far so good right all of you
- 34:52okay now after that you know what guys
- 34:54you have to do see I'll just go away
- 34:58this is done
- 34:59this is also done
- 35:03this is also done just now I did it now
- 35:06I want to have one app in Tomcat
- 35:08actually you know in real time you will
- 35:10deploy the real Java applications a
- 35:13large one which has a database and
- 35:15multiple things okay but right now that
- 35:18process I don't want to get into that so
- 35:20then what is alternative how do we get
- 35:21app so you know what Tomcat itself offer
- 35:25you multiple small small app
- 35:29so I'm utilizing that one so Tomcat is
- 35:32running on 88 report remember that IP
- 35:34address and ET port and
- 35:39see here so this is your Tomcat server
- 35:41but they will also host some example app
- 35:44so you can learn the Tomcat very fast so
- 35:47this example all this app servlet app
- 35:50JSP will app web socket apps these are a
- 35:54lot of app by default they hosted so
- 35:56right now I don't have to install it yes
- 35:58these all apps are not a database
- 36:00oriented that but static file as static
- 36:03apps are there so we which you can use
- 36:05it for time being so now right now if
- 36:07you see that these are the execute one
- 36:10request
- 36:12click one request click one request
- 36:15click one request like that so one of
- 36:18the app or two app three app or these
- 36:21are app also you can use it for
- 36:23generating a traffic these are nothing
- 36:25but a simple Java applications and stuff
- 36:29like that
- 36:30Okay so
- 36:32all this thing so are you understanding
- 36:34so far
- 36:35where is the app
- 36:40okay so now after that this is the
- 36:44generate traffic using geometer
- 36:48so what to do for generating a traffic
- 36:51so guys for that we need to set up a j
- 36:54meter now they will say Rajesh how can I
- 36:58set up a j meter so for that
- 37:01I am going to share with you one of
- 37:03blogs
- 37:04I don't know how much it will help you
- 37:06because the gym it has a different tool
- 37:08but
- 37:11this is the J meter how to install and
- 37:14configure J meter so here also there is
- 37:17a step-by-step documents are there
- 37:20if he wants to set up your own J meter
- 37:23you can do that okay
- 37:26and if you want to
- 37:28if you want to Outsource that work
- 37:31creating a traffic on your application
- 37:33then you can ask notes I will generate
- 37:36traffic from my measures okay so this is
- 37:39the setup I have a setup already so
- 37:42I don't want to deviate from the datadog
- 37:44to generator but yes all of you
- 37:47understood this
- 37:51yeah okay so those who are finding
- 37:54interest uh you can do a little bit
- 37:56later also that's not a problem but you
- 37:58remember that for generating a fake
- 38:00traffic you need some tools like that
- 38:01like a rule load Runner J meter or
- 38:05something like that because how many
- 38:06times you'll click you cannot generate a
- 38:09right graph so that is a geometer so
- 38:12where's my gym meter so that is my
- 38:14geometer is
- 38:16in
- 38:17a C drive
- 38:21and tools every tools I installed in the
- 38:24mind
- 38:25dislocations and if you see that it's a
- 38:28latest version of jmeter Okay so
- 38:32click on it
- 38:34click on it
- 38:36command line
- 38:38and where is the jmeter.bat
- 38:41um
- 38:42this is this you can use for the Linux
- 38:44also okay so this is the one
- 38:47this is for Linux
- 38:48this is for Windows
- 38:52okay so enter drag it run it
- 38:57so now just wait for it my J meter
- 39:00consoles will be open up Geometry is a
- 39:02Java application basically for the
- 39:04network call okay Network call it's
- 39:08making it
- 39:19so guys this is my geometer
- 39:22okay so now what are the application I
- 39:25want to create a traffic
- 39:27so my applications let's
- 39:29use one of these just to get started
- 39:32this is my applications
- 39:35and this is the IP address this is the
- 39:37DNS name it can be protocol
- 39:39port number endpoint comfortable right
- 39:42all of you
- 39:48yeah okay so let's get now you'll say
- 39:52Rajesh you must be doing some
- 39:54configuration how would I do that so for
- 39:56that also there is one article I have
- 39:58written
- 39:59and that age this installation okay and
- 40:03just again
- 40:13just a second I'll share with you one
- 40:15URL so you should not struggle for for
- 40:19it
- 40:20uh after this session also so
- 40:24just
- 40:30so this is a step by step with a
- 40:34screenshot you have it
- 40:36and
- 40:38just
- 40:43recordings anyways will be there so this
- 40:47is the best one step by step
- 40:50okay uh
- 40:53you can use this one okay this is
- 40:58well defined one I had it but in this
- 41:01place but not able to quickly get it
- 41:05G meter
- 41:09told you
- 41:18okay I'll just so this is the best one
- 41:21okay okay so now what I'm going to do I
- 41:24am going to create a plan this plan is
- 41:28for the devops school
- 41:30okay now I am going to have thread
- 41:34thread Miss number of users for the
- 41:36traffic how many users I want to create
- 41:38per second let's say 10 because if I go
- 41:41for more than 20 my system will hang at
- 41:45you I don't want to get hands 10 is okay
- 41:47do you want the infinite yes and I'm
- 41:50going to create a listener sorry
- 41:54listener sampler for HTTP request and
- 41:58HTTP request is
- 42:01this is the IP address
- 42:05port a HTTP Port Port number 818
- 42:09um
- 42:10protocol is HTTP and the path is
- 42:14this
- 42:16done now I'll just create one listener
- 42:19also
- 42:21um
- 42:22summary report one more listener I need
- 42:25it
- 42:26for
- 42:31aggregate report one more listener and
- 42:34mini rate
- 42:36view registry
- 42:38so this is done so
- 42:43okay so this is my project I created in
- 42:46the simple project I created in uh J
- 42:48meter I saved this project and now I am
- 42:52creating a traffic
- 42:55and now traffic is going you see that
- 42:57200 response time
- 42:59listener
- 43:02this is going now can I go to datadog
- 43:06and validate
- 43:09so guys
- 43:11click on services
- 43:15right now nothing has come
- 43:18okay one thing I forgot you know what
- 43:21one thing I forgot and that was
- 43:23restarting the agent actually so system
- 43:25CTL
- 43:27or restart data log agency
- 43:34and
- 43:36just wait for few seconds then traffic
- 43:39is being generated I can keep cleaning
- 43:42it
- 43:43unless it's generated and also meanwhile
- 43:46I'll check that if all this thing is set
- 43:48or not so here data dog
- 43:51data doc uh depending agent
- 43:55status
- 43:58yes and look at the EPM section c is EPM
- 44:03agent
- 44:04agent running these all commands I
- 44:06taught you earlier so it's the same
- 44:08command no new commands
- 44:10here
- 44:11is going and sending receiving
- 44:14writing has not started actually so just
- 44:17wait for few seconds
- 44:19so setup seems to be okay I need to have
- 44:22a little patience for few seconds
- 44:24and
- 44:26you should be having it
- 44:28by the way what was the environment so
- 44:31you there is a this you know this error
- 44:33I faced two years before and you won't
- 44:37trust me I struggle a lot actually
- 44:40and there is one there is one problem
- 44:42here look at this this one and this one
- 44:46and tell me are we having some problem
- 44:48here
- 44:50I am not able I should see the services
- 44:52but in not I'm not able to see that why
- 44:57I remember this issues
- 44:59I spent so many hours for that
- 45:02see that Ops test here yes scope is here
- 45:07production here by default is a test
- 45:09because of my last filter so now I have
- 45:12to change it and because of that I
- 45:14struggle a lot last time now you have it
- 45:17understood guys
- 45:21all of you yes yes so now you will
- 45:26just have to wait for 20 30 minutes or
- 45:29maybe one hour because all the graph has
- 45:31to be populated so you want to see all
- 45:33the graph which I'm not going to teach
- 45:34you so click on it this is one service
- 45:36and whatever you see
- 45:39this all graph you need to be populated
- 45:41with the data so I can explain it
- 45:44so now all the traffic
- 45:47generated Here by JJ by J beta and all
- 45:52the response they are tracking it
- 45:55and now your job is to find out the
- 45:58response time which is creating a
- 46:00problem so all this graph I'll explain
- 46:02it to you one by one and get quick
- 46:06are you understanding all of you
- 46:11yes
- 46:12yes so this is the setup of APM now next
- 46:16phase of learning is understanding this
- 46:18graph and for that we need 20 minutes
- 46:21because the graph will fill for at least
- 46:23for one hour and all then it will be
- 46:26good you you can visualize something
- 46:27others blank graph you won't understand
- 46:29anything so now meanwhile I am giving
- 46:31this time to all of you so you can also
- 46:34set up and get it done along with that
- 46:38you can access our other tutorials such
- 46:40as Docker ansible Jenkins terraform
- 46:43Splunk AWS Azure and various other
- 46:46devops related premium tutorials with
- 46:48our Channel membership if you would have
- 46:50any issues with our Channel membership
- 46:51you can drop an email to us at contact
- 46:53devopschool.com or you can also
- 46:55unsubscribe from Channel membership
- 46:56anytime if you don't want to continue or
- 46:58did not like the video to get our
- 47:00Channel membership click onto the join
- 47:02button select the 399 plan and grow your
- 47:04skills immensely please be kind enough
- 47:06to like it and you can comment any of
- 47:08your doubts and queries we will reply to
- 47:10them at the earliest thanks for watching
- 47:13hello everyone if you would like to
- 47:16access the remaining videos of this
- 47:18playlist of 50 plus more tools which are
- 47:20coming under devops Dave secops SRE data
- 47:24Ops get Ops Etc kindly become our
- 47:27channel members by clicking on the
- 47:29joining button
- 47:30you would have access to one hundreds of
- 47:32playlists and one thousands of videos
- 47:34lifetime access with this membership
- 47:36enjoy
About this transcript
This page contains the full transcript of Session - 8- Datadog APM Monitor Java Application using Tomcat - Part1 by AiOps School, generated from the public captions YouTube serves with the video. The transcript has 6,670 words across 1,034 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.