Install Prometheus and Grafana with WMI Exporter on Window Server 2022 EC2|Windows Server Monitoring

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so in this session we are able to learn how to install Prometheus and graph now with wmx photo on Windows Server 2022 base so here this is my article so we are going to follow this article so first of all we need to understand what is Prometheus the Prometheus is a open source Linux server monitoring tool mainly used for Matrix monitoring event monitoring and alert management management and Etc Prometheus had changed the way of monitoring system and that is why it has become the top level project of cloud native Computing foundation and Prometheus uses a powerful query language that is known as prompt UI then why do we use Prometheus so multi-dimensional data model with the terms same sorry with the time series data identified by Metric name and key value Pairs and prompt here a flexible query language to leverage this dimensionally and pushing time series is supported via the intermediate trigate so that's the Prometheus then here I mentioned the previous architecture you can see chromica Server storage from materials scrap Target service Discovery alert management alert manager and user interfaces so here you can see let's understand the Prometheus components one by one so Prometheus server so in Prometheus server storage from to your service Discovery scap Target alert management interviews interface then the next is graph now so what is graph now so graphina is a free and open source visualization tool mostly used with Prometheus to reach monitor metrics and grafna provides various dashboard charts graphs alert for the particular data source and ravna allows to query visualize explore metrics and set alerts for the data source which can be system server nodes cluster and Etc so we can also create our own Dynamic dashboard for visualization and monitoring and we can save the dashboard and even share with our team members which is one of the main advantage of graphina the next is wmx voter so it is the same like node exporter but node exporter only for Linux and wmx Porta only for window and development exporter is an exporter utilized for Windows server to collects metrics like CPU uses memory and disk uses and it is open source which can be installed on Windows server using the dot MSI installed so that's a small introduction about wmx Porter graph when I enter with yes so let's start so here I mentioned some pretty besides so firstly we need a good internet connectivity then security groups configured properly and edited browser instances so firstly we need a port number 90904 Prometheus server then 91 into 824 wmx Porter and three zero zero zero for grafana so let's start so firstly we need to download Prometheus for window so first of all we need a instance Windows Server instance you can see here I install instance window instance you can see the name Prometheus and if you want to check the Ami so let's check so I'm going to scroll down and you can see here my name Windows Server 2022 okay and as you can see we have successful login to our Windows Server here you can see right okay now so first of all here we need to download our Windows Server so you can see here I mention a link of uh the official site of Prometheus so I am going to copy the link and I'm going to paste here and if you want to install the latest so if you want to download the latest version of Prometheus then you can go to this Down official page of Prometheus and download from here so we need to download for window so you can see the zip file for Windows I am going to download okay it's downloading so let's go to the download okay so firstly we need to unzip so I'm going to extract all okay so it's done so now we are in this folder so I am going to click on committees and now here I'm going to use command prompt from here because firstly we need to go to the root directory and here I'm going to use command prompt form here because we need this location so here I am going to enter CMD and press enter so you can see the location we are in user administrator download and the Prometheus folder name right okay so here now to download Prometheus in window we need to use this command here you can see open command prompt and will locate to Prometheus root directory and use the following start command to pass web listen address and config file default Prometheus dot EML file as options right so the command is here so I'm going to use this command to download Prometheus on window so here I am going to paste this command and press enter okay so as you can see Server is ready to receive web request okay so that means you have successfully download Prometheus so now how to check so open your web browser and here sorry open your web browser and here how to check our Prometheus so enter localhost and the Prometheus port number is 9090 right okay so let's check automated this install or download or not so you can see it successfully downloaded on Windows Server you can see the Prometheus dashboard so that's the Prometheus dashboard as you can see Prometheus alert graph status and hip so if I go to the status and go to the Target so as you can see as of now we have only one one target here right with the name Prometheus and you can see the end point here and the state is up and the labels and last crap and scrap duration and so on right okay that means you have uh as of now we are only one job here that's why you can see query and click on execute so you can see it give us only one why because as of now we have only one job and that that the job state is up right that's why they give us one if our job status is down that means if I go to status and go to the Target here the state is down then it will give us 0 when our Prometheus or Prometheus or or maybe another job when it's down then they give us zero but as of now we have only one job that's why they give us one okay now that's it's done that means we have successfully download Prometheus okay now now the next step let's check the next step in our article so that's my article okay we have successfully uh installed Prometheus okay now the next step is here here now the next step is install graphana so now we will download the latest version of grafna from official page of graph now so select operating system and download the dot MSA installer so I'm going to copy this graph Now official site page and I'm going to copy here okay so as you can see this is the official site of graph when I download graph and if you want to download the latest version so you can go to this official site and as you can see you can choose your operating system so our operating system is window right okay and after that here I am going to install this download the installer right dot msf file okay so as you can see it's installing graphma okay you can see it's installed sorry it's downloaded it's done okay so let's go to the folder and let's download our graph now so I'm going to download [Music] so let's install now okay so installer is ready so let's install so welcome to the graph now Enterprises setup Wizards okay next I accept the terms and the license agreement next and the install so you can see it's installing graph now on our Windows server okay you can see click the Finish button to exit the setup wizard okay it's done so click on finish so now how to check our graph now is installed or not so first of all okay so how to check our graph Knight installed or not so just a second okay so first of all go to the web browser and here enter localhost port number is three zero zero zero right okay so before check first of all we need to change Us in graph now configuration file so how to change so first of all just a second before check graph now dashboard so first of all go to the C drive here see right go to the program files then go to the graph now labs graphernal and you can see config folder and go to the defaults file and your search for smdp okay so let's scroll down and here you can see the SMTP fall so we need to replace with true then let's save the file add exit okay now it's done okay so now it's done okay now open new tab and and let's check our graph nice install or not so enter localhost colon and the port number is three zero zero zero let's end as you can see it's a loading graph now that means we have successfully installed graphqra on Windows right so first of all it will ask user name or email or password so the default username and password is admin so username is admin and the password also admin you can see here admin right so click on login and for security it will ask set your new password right for the security so I'm going to reset my password foreign if you want to skip then you can skip this step okay so as you can see this is our graph now dashboard you can see welcome to graph now right so this is our graph now dashboard okay now the next is here we are going to install W my exporter now okay okay it's done now let's go to the WM exporter so Windows host you are going to use wmi exporter so you can download the latest version of installer from here so here I will here I mentioned the link of my wmx body installer so I'm going to copy this and I'm going to open here so wmx folder is like node exporter but no exporter for only Windows sorry node exporter only for Linux and WM exporter only for Windows Server right if you want to check then if I go to this Prometheus official site here and here if I click on node exporter you can see so you can see in node exporter there is no any installer for Windows machine you can see only for Linux Android right because the node exporter is only for Windows not sorry only for Linux not for the windows and the wmx Porter is only for Windows not for the Linux machine so that's why for Windows we are going to install WM my exporter so I am going to scroll down and in assets you can see wmx photos I am going to use this dot MSI installer right so let's download so as you can see it's downloading okay it's done so click on showing folder and let's install WM exporter using this installer so wait for the few seconds foreign export is installed or not so how to check so the command is simple Here in My article as you can see after install of wmx photo let's check the status okay after that now that your export is running and it should start exposing the metrics on this port number 9182 right if you want to check then here go to the web browser and enter localhost and report number is nine one eight two slash Matrix let's check so you can see the Matrix as you can see and you can see the Matrix start from Windows right so here you can see now the export is running and you should start the it should start exposing metrics on this this localhost 918 right okay it's done and if you want to check the status of WM exporter so first of all go to the service and here in service let's check the status so how to check so open service add in service let's check the WMA exporter so let's scroll down and let's check the wmx photo here so where is the diploma exporter um so here you can see WMA exporter right and the state is running you can see that means we have successfully installed wmi exporter on Windows machine okay so you can see WM export and the state is running that means you have successfully installed wmx Porter on Windows and as you can see the Matrix right okay now now the next step is we need to add this wmx quota job on our Prometheus configuration file so how to add so let's check the Articles and here you can see update from ql so it's update to meters configuration file right that means to medius dot ml file so firstly we need to go to the Prometheus file and open the prometheus.yaml file and here we need to update the configuration file right so here we need to add the new job with the name WM exporter and in Target here we need to enter our host IP and port number is 9182 right okay so I am going to copy this and now go to the Windows server and here now if I go to the Prometheus and go to go to the status and go to the Target so now you can see as of now we have only one job right with the name Prometheus now we are going to add new uh one more job with the name wmx Porter here okay so go to the Prometheus foreign go to the Prometheus and here in Prometheus here is our configuration file dot ml file and we need to update our configuration file and here I am going to add one more job with the name wmx photo and yeah in host typing we need to add our instance IP so go to the AWS and I'm going to copy my instance IP and let's paste here and now let's check the indentation we need to set the proper indentation you can see we need to careful about indentation okay it's done okay so let's save the file and close your file okay now if I go to the Prometheus and refresh the page and as you can see here is only one job now right if I go to the Prometheus then go to the star status and Target and still you can see we have only one job why because we need to restart our Prometheus we you if you changes any configuration file we need to restart our server right so how to restart our Prometheus so first of all I'm going to close this and after that go to the Prometheus and one command from through mail and after that here enter the command that we have used in our in when we our install our Prometheus yo here is the command I am going to use this command for restarting my Prometheus okay let's copy the command let's head down okay it's done now let's go to the Prometheus dashboard here and refresh the page now wait for a few seconds it's restarting and now you can see now we have two job one is Prometheus and the another one is WM export and the state is up if I go to the Prometheus and execute the up query here and now we will have two outputs one for Prometheus and one for WM exporter and the state is up that's why they give us one if the state is down then give us 0. okay if I go to the status and just go to the Target you can see we have two jobs here right now okay now the next step is okay now the next step is go to the graph now okay now configure Prometheus as grafna data source so once you login into graph run now first navigate to setting icon and configure data sources right okay so go to the graph now so here is our graph now and here in graph now first of all go to the settings here configure add data source and our data source these two meters click on Prometheus and here we need to enter our Prometheus URL so here is our Prometheus URLs or URL localhost 9090 and [Music] keep as it is and click on Save and test data source updated you can see data source is working okay now go to the home page and now click on in this icon and go to the import and now here we need to enter grafna.com dashboard URL or ID so what is the ID so let's scroll down and you can see as per your requirement you can do other changes or you can also keep the remaining configurations before Okay now click on Save and test okay now go to the import here here the next step is creating graphene dashboard to monitor Windows Server right okay so let's build a dashboard in graph now so then it will able to reflect the Matrix of the Windows system so here we will use this ID 14510 to import graphnet.com so let's come to the graphma home page and go to the import and enter the 14510 okay so let's enter the ID 1 4 5 1 0. for wmx bottom so now click on load import [Music] foreign so you can see Windows exporter node so you can see the dashboard so you can monitor this diet support from here you can see the data you can see the graph of hard drive load hard disk free space and so on you can see if you want to save this dashboard so you can save you can see save dashboard and that's the last five minutes right so you can set the minutes also okay so in my article article you can see the dashboard right so then you are done with the setup you can see your dashboard is running up right so that's the your dashboard and you can monitor the dashboard right okay so we have successfully installed uh in this video we have successfully installed Prometheus grafna and wmisporter on Windows server 2022. so thank you for watching
Info
Channel: DevOps Hint
Views: 5,989
Rating: undefined out of 5
Keywords: Install Prometheus and Grafana with WMI Exporter on Window Server 2022 EC2, Windows Server Monitoring, install prometheus and grafana on windows server, How To Install Prometheus Alertmanager and Grafana on Windows Server 2022, prometheus tutorial, prometheus monitoring tool, node exporter
Id: iDlQFxyLL0Q
Channel Id: undefined
Length: 29min 56sec (1796 seconds)
Published: Wed Feb 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.