SlideShare a Scribd company logo
1 of 7
PROMETHEUS INSTALLATION & CONFIGURATION...
[ 8 SIMPLE STEPS ]
1. Open Terminal as root user --
Just type sudo su and then Enter password as shown below.
Then, Go to main directory(optional).
2. Use sudo apt-get update command to check if ubuntu is up-to-date or not
3. Go to root dir using cd root (optional) as shown below.
{Sometime this shows ‘no file or directory’ : No issue continue to next command }.
Now,
Download Prometheus tar.gz file based on your system confg. [32/64 bit]
from https://prometheus.io/download/
=> I recommend to use either of two commands for downloading i.e.;
i. wget “Url/File_Link_Location”.
ii. curl -LO “Url/File_Link_Location”
[If curl not installed then use sudo apt install curl]
Then,
To check whether prometheus tar.gz file downloaded successfully use ls command
4. Download Node_Exporter tar.gz file based on your system confg. [32/64 bit]
from https://prometheus.io/download/ same as above.
Then,
To check whether node_exporter tar.gz file downloaded successfully use ls command.
5. Extract node_exporter tar.gz file using --
tar xvfz file_name..
Then,
To verify file is extracted successfully again use ls – you can see that in list.
Similarly,
Extract prometheus from tar.fz file using same command.
Again you can see that in list.
6. Now, change your pwd to node_exporter to run it as shown.
Then, Start your node_exporter using ./node_exporter command
For checking whether node_exporter works properly or not --
Go to your browser & check it on http://localhost:9100 port.
Here, you can check that it show large no. of metrics.
7. Starting prometheus server --
Open new terminal as root in similar way.
Again, change you pwd to prometheus using cd as shown below.
Then,
Check whether prometheus has all needed dir and files using ls.
Now, [ Very Imp]
Open prometheus.yml file using cat or vi or nano command and make some update in
the existing code.
Go to last line of code and add one more target ‘localhost:9100’ as shown below
Rem.. ->
i. If you use cat command then you have to copy code from --
https://prometheus.io/docs/introduction/getting_started/ and update
prometheus.yml file at same time.
ii. If you use vi then you need to update target only. [Check if vi package installed
Reason – cat > prometheus.yml delete existing data/code & make new file. And
vi prometheus.yml open existing file for editing – But here before inserting
or editing press [i key] and for saving file - press esc then :wq then press enter.
Now, Everythig is configured
Therefore, To start prometheus use ./prometheus.
Next, Prometheus started and it shows a status page about itself at
http://localhost:9090
8. Starting Grafana Service : Dashboard
Represents and monitor data collected every sec --
So, To install and start services of grafana follow command in new root terminal
Now, You can use grafan services at http://localhost:3000
Here, You can signup & create your passwd for grafana.
After log In you can create your dashboard and can execute queries after
creating org. in Main Org.Then, You can add Data sources.Then, create
dashboard -> Add Row -> Select Graph/Table.

More Related Content

More from Shalabh Chaudhary

More from Shalabh Chaudhary (8)

Data Communication & Networking Notes
Data Communication & Networking NotesData Communication & Networking Notes
Data Communication & Networking Notes
 
Java Basics for Interview
Java Basics for InterviewJava Basics for Interview
Java Basics for Interview
 
Collections in Java Notes
Collections in Java NotesCollections in Java Notes
Collections in Java Notes
 
OOPs & Inheritance Notes
OOPs & Inheritance NotesOOPs & Inheritance Notes
OOPs & Inheritance Notes
 
Java Fundamentals
Java FundamentalsJava Fundamentals
Java Fundamentals
 
Unified Modeling Language(UML) Notes
Unified Modeling Language(UML) NotesUnified Modeling Language(UML) Notes
Unified Modeling Language(UML) Notes
 
Advanced JAVA Notes
Advanced JAVA NotesAdvanced JAVA Notes
Advanced JAVA Notes
 
Core JAVA Notes
Core JAVA NotesCore JAVA Notes
Core JAVA Notes
 

Recently uploaded

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 

Recently uploaded (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

Prometheus Installation & Configuration in Ubuntu

  • 1. PROMETHEUS INSTALLATION & CONFIGURATION... [ 8 SIMPLE STEPS ] 1. Open Terminal as root user -- Just type sudo su and then Enter password as shown below. Then, Go to main directory(optional). 2. Use sudo apt-get update command to check if ubuntu is up-to-date or not 3. Go to root dir using cd root (optional) as shown below. {Sometime this shows ‘no file or directory’ : No issue continue to next command }. Now, Download Prometheus tar.gz file based on your system confg. [32/64 bit] from https://prometheus.io/download/ => I recommend to use either of two commands for downloading i.e.; i. wget “Url/File_Link_Location”. ii. curl -LO “Url/File_Link_Location” [If curl not installed then use sudo apt install curl] Then, To check whether prometheus tar.gz file downloaded successfully use ls command
  • 2. 4. Download Node_Exporter tar.gz file based on your system confg. [32/64 bit] from https://prometheus.io/download/ same as above. Then, To check whether node_exporter tar.gz file downloaded successfully use ls command. 5. Extract node_exporter tar.gz file using -- tar xvfz file_name.. Then, To verify file is extracted successfully again use ls – you can see that in list. Similarly, Extract prometheus from tar.fz file using same command. Again you can see that in list.
  • 3. 6. Now, change your pwd to node_exporter to run it as shown. Then, Start your node_exporter using ./node_exporter command For checking whether node_exporter works properly or not -- Go to your browser & check it on http://localhost:9100 port. Here, you can check that it show large no. of metrics.
  • 4. 7. Starting prometheus server -- Open new terminal as root in similar way. Again, change you pwd to prometheus using cd as shown below. Then, Check whether prometheus has all needed dir and files using ls. Now, [ Very Imp] Open prometheus.yml file using cat or vi or nano command and make some update in the existing code. Go to last line of code and add one more target ‘localhost:9100’ as shown below Rem.. -> i. If you use cat command then you have to copy code from -- https://prometheus.io/docs/introduction/getting_started/ and update prometheus.yml file at same time. ii. If you use vi then you need to update target only. [Check if vi package installed Reason – cat > prometheus.yml delete existing data/code & make new file. And vi prometheus.yml open existing file for editing – But here before inserting or editing press [i key] and for saving file - press esc then :wq then press enter.
  • 5. Now, Everythig is configured Therefore, To start prometheus use ./prometheus. Next, Prometheus started and it shows a status page about itself at http://localhost:9090
  • 6. 8. Starting Grafana Service : Dashboard Represents and monitor data collected every sec -- So, To install and start services of grafana follow command in new root terminal Now, You can use grafan services at http://localhost:3000
  • 7. Here, You can signup & create your passwd for grafana. After log In you can create your dashboard and can execute queries after creating org. in Main Org.Then, You can add Data sources.Then, create dashboard -> Add Row -> Select Graph/Table.