SlideShare a Scribd company logo
2
Most read
4
Most read
8
Most read
Server monitoring using Grafana
and Prometheus
www.cybrosys.com
INTRODUCTION
Grafana
Grafana is an associate, open supply metric analytics suite which can be used on top of a variety of
different data stores. It is most commonly used for visualizing statistical knowledge for infrastructure and
application analytics, however, several use it in different domains together with industrial sensors, home
automation, weather, and process control.
Grafana help server monitoring by:
Visualize
From heatmaps to histograms. Graphs to geomaps.
Grafana encompasses an inordinately of visualization choices to assist you in perceiving your knowledge,
beautifully.
Alert
Seamlessly outline alerts wherever it is sensible — whereas you’re within the knowledge. Grafana also
gets you notified via varied communication mediums like Slack, PagerDuty etc and also defines the
threshold in a visual format.
Unify
Grafana act as a platform to bring data from different sources and analyze each with others. Different
databases like Mysql, PostgreSQL, etc have different monitoring packages available in Grafana and also
can mix them together to better monitoring.
Prometheus
Prometheus is an open source computer code project written in Go, that real-time records the period of
time metrics in very statistic info designed employing a hypertext transfer protocol pull model, with
flexible queries and real-time alerting. Prometheus is not only a monitoring tool, but it also gives a
better view of some of its hardware. Very useful for analyzing capacity and performance reporting when
running into issues and use it for forecasting and increases in hardware.
Combination of Prometheus and Grafana
The combination of Prometheus and Grafana is changing into a lot of and a lot of common observance
stack used for storing and visualizing statistic knowledge. Prometheus acts because of the storage
backend and Grafana because of the interface for analysis and visualization. Prometheus collects metrics
from monitored targets by scraping metrics from the hypertext transfer protocol endpoints on these
targets.
In this blog, I am explaining about monitoring of basic system performance at its core level. Database
monitoring will explain in my next blog.
Install Grafana on Ubuntu 18.04 LTS
Use these terminal commands for Grafana stable version installation.
1) wget https://dl.grafana.com/oss/release/grafana_5.4.3_amd64.deb
2) sudo apt-get install -y adduser libfontconfig
3) sudo dpkg -i grafana_5.4.3_amd64.deb
To start Grafana service
4) systemctl daemon-reload
5) sudo service grafana-server start
To configure the Grafana server to start at boot time:
6) sudo update-rc.d grafana-server defaults
This will start the grafana-server process as the grafana user, which was created during the package
installation.
a) Grafana’s default running port is 3000 and default user and password is admin. (To access Grafana
goto: http://localhost:3000
b) Default login and password admin/ admin
Fig 1. Grafana Login Page
Fig 2. Grafana Home Page
Install Prometheus on Ubuntu 18.04 LTS
Use these terminal commands for Prometheus installation.
1) wget https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg | apt-key add -
2) sudo apt-get update
3) sudo apt-get install prometheus prometheus-node-exporter prometheus-pushgateway
prometheus-alertmanager
4) sudo service prometheus status
Fig 3. Prometheus Home Page
For our basic system monitoring, no more configurations required. The file “prometheus.yml” have
built-in configurations.
Create our First Grafana Dashboard
1) Goto Grafana Home page and click on: Create your First Data Source
Fig 4. New Data source page
This will start Prometheus on localhost:9090. Prometheus doesn't require any login credentials.
Fig 5.Prometheus Configuration
3) Enter Name and Basic Auth Details (Give grafana user name and password for Basic Auth Details).
The default settings enough for Prometheus. Save the information.
4) Find an Official & community built a dashboard from https://grafana.com/dashboards
for basic system monitoring, I am using CPU Utilization Details (Cores) [ID: 4151] custom dashboard.
Copy the dashboard ID from here.
2) Select Prometheus from the list. If it not present, search Prometheus on the search box.
Fig 6. CPU Utilization dashboard
5) To import the above dashboard to our Grafana, Go to manage the menu from Dashboard Icon:
Fig 7. Dashboard menus
6) Click Import Button
Fig 8. Dashboard Import page
7) Paste dashboard ID and load
Fig 9. Prometheus Import
8) Select system Prometheus instance and click Import. Now our first dashboard is ready to use. From the
dashboard, home selects the CPU Utilization dashboard. It will give a beautiful system monitoring UI.
Fig 10. Dashboard row
Fig 11. Core wise CPU utilization
If you want to customize the above dashboard or graph click the graph and edit Prometheus parameters.
Also, export the graph data to the CSV file.
Fig 12. Dashboard panel options
Fig 13. Panel query editor
Enjoy Grafans features and become a pro on server management.
Click here to read more about: Server monitoring using Grafana and Prometheus
Cybrosys Technologies
Pvt. Ltd.
1st Floor, Thapasya
Building,
Infopark, Kakkanad,
Kochi, Kerala,
India-682030.
Cybrosys Technologies
Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, Kerala,
India-682030.
Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park,
Kakkancherry,
Calicut University P.O.
Calicut Kerala, India - 673635.
Cybrosys Ltd
Cybrosys Limited
Alpha House, 100 Borough High
Street, London, Greater London,
SE1 1LB, United Kingdom
Thank You !
Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad, Kochi,
India - 682030.

More Related Content

PDF
Cloud Monitoring tool Grafana
PDF
Getting Started Monitoring with Prometheus and Grafana
PPTX
Prometheus - Intro, CNCF, TSDB,PromQL,Grafana
PPTX
MeetUp Monitoring with Prometheus and Grafana (September 2018)
PDF
Infrastructure & System Monitoring using Prometheus
ODP
Monitoring With Prometheus
PDF
System monitoring
PPT
Monitoring using Prometheus and Grafana
Cloud Monitoring tool Grafana
Getting Started Monitoring with Prometheus and Grafana
Prometheus - Intro, CNCF, TSDB,PromQL,Grafana
MeetUp Monitoring with Prometheus and Grafana (September 2018)
Infrastructure & System Monitoring using Prometheus
Monitoring With Prometheus
System monitoring
Monitoring using Prometheus and Grafana

What's hot (20)

PDF
Grafana introduction
PPTX
Prometheus and Grafana
PDF
Monitoring with prometheus
PPTX
Monitoring With Prometheus
PDF
Prometheus monitoring
PPTX
Grafana optimization for Prometheus
PDF
Monitoring Kubernetes with Prometheus
PPTX
Grafana
PPTX
Monitoring_with_Prometheus_Grafana_Tutorial
PDF
Explore your prometheus data in grafana - Promcon 2018
PDF
Intro to open source observability with grafana, prometheus, loki, and tempo(...
PDF
Prometheus and Docker (Docker Galway, November 2015)
PDF
Apache Airflow
PDF
Prometheus Overview
PPTX
PPTX
Prometheus with Grafana - AddWeb Solution
PDF
Prometheus + Grafana = Awesome Monitoring
PDF
How to monitor your micro-service with Prometheus?
PPTX
Apache Airflow overview
PPTX
THE STATE OF OPENTELEMETRY, DOTAN HOROVITS, Logz.io
Grafana introduction
Prometheus and Grafana
Monitoring with prometheus
Monitoring With Prometheus
Prometheus monitoring
Grafana optimization for Prometheus
Monitoring Kubernetes with Prometheus
Grafana
Monitoring_with_Prometheus_Grafana_Tutorial
Explore your prometheus data in grafana - Promcon 2018
Intro to open source observability with grafana, prometheus, loki, and tempo(...
Prometheus and Docker (Docker Galway, November 2015)
Apache Airflow
Prometheus Overview
Prometheus with Grafana - AddWeb Solution
Prometheus + Grafana = Awesome Monitoring
How to monitor your micro-service with Prometheus?
Apache Airflow overview
THE STATE OF OPENTELEMETRY, DOTAN HOROVITS, Logz.io
Ad

Similar to Server monitoring using grafana and prometheus (20)

PDF
Prometheus-Grafana-RahulSoni1584KnolX.pptx.pdf
PDF
Practical monitoring with Prometheus and Grafana Presentation.pdf
PDF
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
PDF
Prometheus Course from beginners to expert course
PPTX
Prometheus grafana workshop
PDF
Prometheus course
PDF
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
PDF
OSMC 2017 | Monitoring MySQL with Prometheus and Grafana by Julien Pivotto
PDF
Grafana Optimization.pdf
PDF
Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)
PDF
Microservices and Prometheus (Microservices NYC 2016)
PDF
Monitoring with Prometheus
PPTX
Code instrumentation in Py with Prometheus and Grafana
PPTX
How to Improve the Observability of Apache Cassandra and Kafka applications...
PDF
DevOps Braga #15: Agentless monitoring with icinga and prometheus
PDF
ROMA NOVIKOV, BAQ, "Prometheus + grafana based monitoring"
PDF
DevOpsDays Phoenix 2018: Using Prometheus and Grafana for Effective Service D...
PDF
Prometheus loves Grafana
PPTX
How to Integrate PostgreSQL with Prometheus
PPTX
An Introduction to Prometheus (GrafanaCon 2016)
Prometheus-Grafana-RahulSoni1584KnolX.pptx.pdf
Practical monitoring with Prometheus and Grafana Presentation.pdf
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
Prometheus Course from beginners to expert course
Prometheus grafana workshop
Prometheus course
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
OSMC 2017 | Monitoring MySQL with Prometheus and Grafana by Julien Pivotto
Grafana Optimization.pdf
Monitoring Kubernetes with Prometheus (Kubernetes Ireland, 2016)
Microservices and Prometheus (Microservices NYC 2016)
Monitoring with Prometheus
Code instrumentation in Py with Prometheus and Grafana
How to Improve the Observability of Apache Cassandra and Kafka applications...
DevOps Braga #15: Agentless monitoring with icinga and prometheus
ROMA NOVIKOV, BAQ, "Prometheus + grafana based monitoring"
DevOpsDays Phoenix 2018: Using Prometheus and Grafana for Effective Service D...
Prometheus loves Grafana
How to Integrate PostgreSQL with Prometheus
An Introduction to Prometheus (GrafanaCon 2016)
Ad

More from Celine George (20)

PPTX
How to Add New Applicants in Odoo 18 Recruitment
PPTX
How to Analyze the Recruitment Process in Odoo 18 Recruitment
PPTX
How to Manage Referral Reporting in Odoo 18 Referrals
PPTX
How to Set, Track, & Review Employee Goals in Odoo 18 Appraisals
PPTX
Revamp in MTO Odoo 18 Inventory - Odoo Slides
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PPTX
How to Manage Bill Control Policy in Odoo 18
PPTX
How to Manage Loyalty Points in Odoo 18 Sales
PPTX
Odoo 18 Sales_ Managing Quotation Validity
PPTX
How to Manage Global Discount in Odoo 18 POS
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
PPTX
How to Apply for a Job From Odoo 18 Website
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
PPTX
How to Manage Resupply Subcontracting in Odoo 18
PPTX
Qweb Templates and Operations in Odoo 18
How to Add New Applicants in Odoo 18 Recruitment
How to Analyze the Recruitment Process in Odoo 18 Recruitment
How to Manage Referral Reporting in Odoo 18 Referrals
How to Set, Track, & Review Employee Goals in Odoo 18 Appraisals
Revamp in MTO Odoo 18 Inventory - Odoo Slides
How to Manage Starshipit in Odoo 18 - Odoo Slides
How to Manage Bill Control Policy in Odoo 18
How to Manage Loyalty Points in Odoo 18 Sales
Odoo 18 Sales_ Managing Quotation Validity
How to Manage Global Discount in Odoo 18 POS
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Tips Management in Odoo 18 POS - Odoo Slides
How to Close Subscription in Odoo 18 - Odoo Slides
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
How to Track Skills & Contracts Using Odoo 18 Employee
How to Apply for a Job From Odoo 18 Website
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Continental Accounting in Odoo 18 - Odoo Slides
How to Manage Resupply Subcontracting in Odoo 18
Qweb Templates and Operations in Odoo 18

Recently uploaded (20)

PDF
Traveri Digital Marketing Seminar 2025 by Corey and Jessica Perlman
PPTX
Helicopters in the Brazilian Oil Industry – Executive Summary
PPTX
The Power of SOPs in Driving Franchise Business Expansion
PDF
HOT DAY CAFE , Café Royale isn’t just another coffee shop
PDF
William Trowell - A Construction Project Manager
PDF
Danielle Oliveira New Jersey - A Seasoned Lieutenant
PDF
Keppel Ltd. 1H 2025 Results Presentation Slides
PDF
FOHO: The Rental Platform Transforming Housing for Asian Renters in the U.S.
PDF
MDR Services – 24x7 Managed Detection and Response
PDF
POB bystra trading system in English Full Guide
DOCX
UNIT 2 BC.docx- cv - RESOLUTION -MINUTES-NOTICE - BUSINESS LETTER DRAFTING
DOCX
unit 1 BC.docx - INTRODUCTION TO BUSINESS COMMUICATION
PPTX
Financial Chart Red Arrow PowerPoint Templates.pptx
PPTX
BUSINESS FINANCE POWER POINT PRESENTATION
PDF
Sample Presentation of Business Plan and Pitch deck
PPTX
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
PPT
How to Protect Your New York Business from the Unexpected
PDF
Why Is MCP Server Development Trending Now.pdf
PDF
Lecture 3 - Risk Management and Compliance.pdf
PDF
Dr. Enrique Segura Ense Group - A Self-Made Entrepreneur And Executive
Traveri Digital Marketing Seminar 2025 by Corey and Jessica Perlman
Helicopters in the Brazilian Oil Industry – Executive Summary
The Power of SOPs in Driving Franchise Business Expansion
HOT DAY CAFE , Café Royale isn’t just another coffee shop
William Trowell - A Construction Project Manager
Danielle Oliveira New Jersey - A Seasoned Lieutenant
Keppel Ltd. 1H 2025 Results Presentation Slides
FOHO: The Rental Platform Transforming Housing for Asian Renters in the U.S.
MDR Services – 24x7 Managed Detection and Response
POB bystra trading system in English Full Guide
UNIT 2 BC.docx- cv - RESOLUTION -MINUTES-NOTICE - BUSINESS LETTER DRAFTING
unit 1 BC.docx - INTRODUCTION TO BUSINESS COMMUICATION
Financial Chart Red Arrow PowerPoint Templates.pptx
BUSINESS FINANCE POWER POINT PRESENTATION
Sample Presentation of Business Plan and Pitch deck
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
How to Protect Your New York Business from the Unexpected
Why Is MCP Server Development Trending Now.pdf
Lecture 3 - Risk Management and Compliance.pdf
Dr. Enrique Segura Ense Group - A Self-Made Entrepreneur And Executive

Server monitoring using grafana and prometheus

  • 1. Server monitoring using Grafana and Prometheus www.cybrosys.com
  • 2. INTRODUCTION Grafana Grafana is an associate, open supply metric analytics suite which can be used on top of a variety of different data stores. It is most commonly used for visualizing statistical knowledge for infrastructure and application analytics, however, several use it in different domains together with industrial sensors, home automation, weather, and process control. Grafana help server monitoring by: Visualize From heatmaps to histograms. Graphs to geomaps. Grafana encompasses an inordinately of visualization choices to assist you in perceiving your knowledge, beautifully. Alert Seamlessly outline alerts wherever it is sensible — whereas you’re within the knowledge. Grafana also gets you notified via varied communication mediums like Slack, PagerDuty etc and also defines the threshold in a visual format. Unify Grafana act as a platform to bring data from different sources and analyze each with others. Different databases like Mysql, PostgreSQL, etc have different monitoring packages available in Grafana and also can mix them together to better monitoring.
  • 3. Prometheus Prometheus is an open source computer code project written in Go, that real-time records the period of time metrics in very statistic info designed employing a hypertext transfer protocol pull model, with flexible queries and real-time alerting. Prometheus is not only a monitoring tool, but it also gives a better view of some of its hardware. Very useful for analyzing capacity and performance reporting when running into issues and use it for forecasting and increases in hardware. Combination of Prometheus and Grafana The combination of Prometheus and Grafana is changing into a lot of and a lot of common observance stack used for storing and visualizing statistic knowledge. Prometheus acts because of the storage backend and Grafana because of the interface for analysis and visualization. Prometheus collects metrics from monitored targets by scraping metrics from the hypertext transfer protocol endpoints on these targets. In this blog, I am explaining about monitoring of basic system performance at its core level. Database monitoring will explain in my next blog.
  • 4. Install Grafana on Ubuntu 18.04 LTS Use these terminal commands for Grafana stable version installation. 1) wget https://dl.grafana.com/oss/release/grafana_5.4.3_amd64.deb 2) sudo apt-get install -y adduser libfontconfig 3) sudo dpkg -i grafana_5.4.3_amd64.deb To start Grafana service 4) systemctl daemon-reload 5) sudo service grafana-server start To configure the Grafana server to start at boot time: 6) sudo update-rc.d grafana-server defaults This will start the grafana-server process as the grafana user, which was created during the package installation. a) Grafana’s default running port is 3000 and default user and password is admin. (To access Grafana goto: http://localhost:3000 b) Default login and password admin/ admin
  • 5. Fig 1. Grafana Login Page Fig 2. Grafana Home Page Install Prometheus on Ubuntu 18.04 LTS Use these terminal commands for Prometheus installation. 1) wget https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg | apt-key add - 2) sudo apt-get update 3) sudo apt-get install prometheus prometheus-node-exporter prometheus-pushgateway prometheus-alertmanager 4) sudo service prometheus status
  • 6. Fig 3. Prometheus Home Page For our basic system monitoring, no more configurations required. The file “prometheus.yml” have built-in configurations. Create our First Grafana Dashboard 1) Goto Grafana Home page and click on: Create your First Data Source Fig 4. New Data source page This will start Prometheus on localhost:9090. Prometheus doesn't require any login credentials.
  • 7. Fig 5.Prometheus Configuration 3) Enter Name and Basic Auth Details (Give grafana user name and password for Basic Auth Details). The default settings enough for Prometheus. Save the information. 4) Find an Official & community built a dashboard from https://grafana.com/dashboards for basic system monitoring, I am using CPU Utilization Details (Cores) [ID: 4151] custom dashboard. Copy the dashboard ID from here. 2) Select Prometheus from the list. If it not present, search Prometheus on the search box.
  • 8. Fig 6. CPU Utilization dashboard 5) To import the above dashboard to our Grafana, Go to manage the menu from Dashboard Icon: Fig 7. Dashboard menus
  • 9. 6) Click Import Button Fig 8. Dashboard Import page 7) Paste dashboard ID and load Fig 9. Prometheus Import
  • 10. 8) Select system Prometheus instance and click Import. Now our first dashboard is ready to use. From the dashboard, home selects the CPU Utilization dashboard. It will give a beautiful system monitoring UI. Fig 10. Dashboard row Fig 11. Core wise CPU utilization
  • 11. If you want to customize the above dashboard or graph click the graph and edit Prometheus parameters. Also, export the graph data to the CSV file. Fig 12. Dashboard panel options Fig 13. Panel query editor Enjoy Grafans features and become a pro on server management.
  • 12. Click here to read more about: Server monitoring using Grafana and Prometheus
  • 13. Cybrosys Technologies Pvt. Ltd. 1st Floor, Thapasya Building, Infopark, Kakkanad, Kochi, Kerala, India-682030. Cybrosys Technologies Pvt. Ltd. 1st Floor, Thapasya Building, Infopark, Kakkanad, Kochi, Kerala, India-682030. Cybrosys Technologies Pvt. Ltd. Neospace, Kinfra Techno Park, Kakkancherry, Calicut University P.O. Calicut Kerala, India - 673635. Cybrosys Ltd Cybrosys Limited Alpha House, 100 Borough High Street, London, Greater London, SE1 1LB, United Kingdom Thank You ! Cybrosys Technologies Pvt. Ltd. 1st Floor, Thapasya Building, Infopark, Kakkanad, Kochi, India - 682030.