Prometheus Tutorial | Installing Prometheus Node Exporter to Monitor Server performance

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
everyone i hope you are doing great this is second video of this playlist where we are going to learn prometheus and in this lesson i'm going to show you how we can install node exporter on one of the server and then we are going to configure prometheus to be able to successfully receive or pull all the data from that server so here you can see i had two servers it been through one is the server where we have installed prometheus you can call it prometheus server and then we have an application server which is called web app and now i'm going to install node exporter on web app first of all we need to go to download and on the download page you can scroll down and search for node exporter and on the node exporter you can if you're on linux just copy this copy the link address from this and then go to the server where you want to install this node exporter so in this case i'm on this web app server and i'm going to write wget and give the url of the software which you want to download hit enter and the software is downloaded so this is the software which has been downloaded and this is right now not uncompressed so we are going to uncompress this let's write that hyphen xv zf and give the name of the software hit enter and now software is uncompressed now we can go to this directory by doing cd and now to ls hyphen lrt and you can see now we have node exporter okay so what we need to do here is let's follow the documentation again go to gripana documentation and if you scroll down you can see it is saying you you can run node exporter by writing node exporter iphone iphone web listing address and then you can specify the ip address of the server along with the port on which you want the services to be listening to listening on so i'm going to copy this and you need to know the ip address of the server where you have where you are installing node exporter so if you want to know the ip address you can write hostname hyphen i hit enter it is going to give you the ip address here okay so let's clear the screen once and write hostname hyphen so this is the ip address and now i'm going to copy paste the command which we have used which we just actually saw in the documentation i'm sorry this is not the command so i guess i need to copy the command again so i'm just going to copy here and just want to show you which working directory i'm in so currently i'm in this working directory now i'm going to write this command and i'm going to use this ip address and let's say i want to run this services on port 8081 okay so i'm going to write 8081 and hit enter now you can see it is saying this is ready and it is listening on ip address and also showing us the port which it is listening on okay so now the node exporter is ready it has started collecting the data from this server and now we need to tell prometheus that primitive should be able to now connect to this node exporter to grab all the data okay so for that again the configuration is mentioned here so we need to go to prometheus server and then we need to add this ip address in the targets okay so let's go to promethea server this is the server where we were running prometheus so i'm going to open another session by going to duplicate session and then we need to go to prometheus folder this is where we are in so we need to modify prometheus dot yml file and here we already have a static config so here i'm just gonna copy this line and going to paste this line here again and here we just change the ip address and also the port name so we need to specify ip address and port name of the server where we just installed node exporter so in this case it is going to be this ip address and port which i'm copying and we are going to paste it here and along with target we can also specify or we can also give some label so in this case i'm going to give let's give label of let's see the documentation again so we can also specify labels and under labels we can give any logical name to this server okay so we don't need this icon here and just follow the syntax which is mentioned in the documentation and then you're going to be good and let's just call it i'm going to call it well application server or let's call it demo okay that's it we can now save it and exit and now we should be able to uh we should be able to restart from ethics and then it should be working so this is the place where we started the services so i'm going to press ctrl c in order to stop prometheus services so once you press ctrl c and you stop promote your services what you can do is you can go to primitives web server and you can refresh it and you can you should be able to see that this is not working right now because we just stopped the services and now i'm going to start the service again so let's first clear the screen and this is the command which we ran previously in order to start prometheus server and i'm going to run it again and it is saying that there is some error so we need to check we need to check configuration file i think we made some mistake so let me go back to this configuration file of prometheus okay so let me check whether it was labeled or labels okay so it is labels save and exit and now we are going to start prometheus okay so this time prometheus is started successfully now what we can do is let's run this command okay with our expression which is mentioned here and we should be able to now we should be able to see both the servers okay we should be able to see prometheus server and we should also be able to see node x server where we install node exporter okay so i'm going to run it okay and here now you can see we already have a server coming here so this is the server where we installed uh node exporter and you can see now we have we have the data coming from this server okay and one more thing now you can do is you can go to status and you can go to targets and under the targets also you can see that node exporter server is being shown here or not okay so here you can see we are successfully able to see node exporter here and also we are able to see that the status of this is up it means uh prometheus is able to successfully connect to the server where we have installed node exporter and it is able to collect all the matrix properly so that's all in this video stay tuned in next video we are going to learn a lot of new stuff if you haven't subscribed stay subscribed so you can get the notification of the videos as soon as i upload them thank you so much for watching you
Info
Channel: Vikas Jha
Views: 13,583
Rating: undefined out of 5
Keywords: Prometheus node exporter, Prometheus architecture, Prometheus for beginners, Learn prometheus, Prometheus tutorial, prometheus monitoring, grafana prometheus, prometheus architecture explained, prometheus monitoring tutorial, what is prometheus monitoring, what is prometheus monitoring tool, what is prometheus, prometheus monitoring tutorial for beginners, prometheus setup, prometheus monitoring tool, prometheus monitoring demo, devops tools, prometheus monitoring with grafana
Id: TiFyQv1Vi5M
Channel Id: undefined
Length: 8min 3sec (483 seconds)
Published: Sun Aug 22 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.