SlideShare a Scribd company logo
2
Most read
3
Most read
8
Most read
SYSTEM
MONITORINGSYSTEM MONITORING
A guide to setup system monitoring on your systems or servers
Why to even Monitor
your sytem ?
● Monitoring a computer system is just as important as the system itself.
● Monitoring allows for proactive response rather than reactive, data security
and data gathering and the overall good health of a computer system.
● While monitoring does not fix problems, it does lead to more stable and reliable
computer systems.
● For example, monitoring may alert a System Administrator that a hard drive
in a server is degraded. The System Administrator is alerted of this and
swaps out the degraded hard drive with a new one. Without monitoring, the
degraded hard drive could turn into a failed hard drive causing an extended
outage and possible data loss.
Monitoring Tools
- Monitoring tools are used to continuously keep track of the status of the
system in use, in order to have the earliest warning of failures, defects or
problems and to improve them.
- There are monitoring tools for servers, networks, databases, security,
performance, website and internet usage, and applications.
-
➔ Features
➔ To log real-time and historical information.
➔ To find optimal settings.
➔ To monitor the number of users on a network.
➔ To monitor network traffic (either in real time or covering a given length of time of
operation with the analysis performed afterwards).
➔ To identify the problems and send an alert message to the administrator (e.g.
network administrator).
Tools Required
Grafana
An Open Source
visualization and
analytics software
Prometheus
A free software
application used for
event monitoring
and alerting.
Node Exporter
A Linux Metric
Exporter for
Prometheus
Prometheus
- Prometheus is a free software application used for event monitoring and alerting. It
records real-time metrics in a time series database built using a HTTP pull model, with
flexible queries and real-time alerting.
- Prometheus was created to monitor highly dynamic container environments like
kubernetes docker swarm etc however it can also be used in a traditional non
container infrastructure where you have just bare servers with applications deployed
directly on them.
- Features :
● A multi-dimensional data model with time series data identified by metric name
and key/value pairs
● PromQL, a flexible query language to leverage this dimensionality
● No reliance on distributed storage; single server nodes are autonomous
● Time series collection happens via a pull model over HTTP
● Pushing time series is supported via an intermediary gateway
● Targets are discovered via service discovery or static configuration
● Multiple modes of graphing and dashboarding support
Why use Prometheus ?
Identify the source of problem
Working and Components
Node Exporter
- Prometheus pulls metrics data from the targets from an
HTTP endpoint which by default is host address
slash metrics and for that to work the targets must
expose => /metrics endpoint .
- Data available at slash metrics endpoint must be in the
format that Prometheus understands and many services don't have native
Prometheus endpoints so extra components are required.
- Exporter is basically a script or service that fetches metrics from target and
converts them into a format Prometheus can understand and exposes this
converted data at its own slash metrics endpoint where Prometheus can
scrape them.
- Node Exporter is the Prometheus exporter for Linux servers.
Working
Setup and Configuration -1 (Prometheus and Node Exporter)
● First, download and add the GPG key with the following command:
$ wget https://s3-eu-west-1.amazonaws.com/
deb.robustperception.io/41EFC99D.gpg | sudo apt-key add -
● Next, update the repository and install Prometheus with the following command:
$ sudo apt-get update -y
$ sudo apt-get install prometheus prometheus-node-exporter prometheus-pushgateway
prometheus-alertmanager -y
● Once the installation is completed, start Prometheus service and enable it to start on boot time with the
following command:
$ sudo systemctl start prometheus
$ sudo systemctl enable prometheus
● You can also check the status of Prometheus service with the following command:
$ sudo systemctl status prometheus
● Configure prometheus.yml file to scrape metrics from node exporter which runs on PORT=9100.
job_name: node
# If prometheus-node-exporter is installed, grab stats about the local
# machine by default.
static_configs:
- targets: ['localhost:9100']
● Also change scrape_interval in the same config file so load on server is reduced.
global:
scrape_interval: 60s # By default, scrape targets every 15 seconds.
evaluation_interval: 60s # By default, scrape targets every 15 seconds.
Setup and Configuration -2 (Prometheus and Node Exporter)
Grafana
- Grafana is open source visualization and analytics software. It allows you to
query, visualize, alert on, and explore your metrics no matter where they are
stored. In general, it provides you with tools to turn your time-series
database (TSDB) data into beautiful graphs and visualizations.
- Grafana connects with every possible data source, commonly referred to as
databases such as Graphite, Prometheus, Influxdb, ElasticSearch, MySQL,
PostgreSQL etc.
- Dashboard - The dashboards contain a gamut of visualization options such
as geo maps, heat maps, histograms, all the variety of charts & graphs which
a business typically requires to study data.
See a demo board on - https://play.grafana.org/
Setup and Configuration
● Installation
$ sudo apt-get install -y apt-transport-https
$ sudo apt-get install -y software-properties-common wget
$ wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install grafana-enterprise
● Setup
○ Start the server with systemd
$ sudo systemctl daemon-reload
$ sudo systemctl start grafana-server
$ sudo systemctl status grafana-server
○ Configure Grafana to start at boot
$ sudo systemctl enable grafana-server.service
- By default Grafana runs at PORT 3000 which can be changed by editing
/etc/grafana/grafana.ini
● Change http_port to your desired port.
[server] http_port=8080
Good luck!
We hope you’ll use these tips to go out and
deliver a robust monitoring for your product or
service!
Reference :
● https://youtu.be/h4Sl21AKiDg
● https://prometheus.io/docs/prometheus/latest
/getting_started/

More Related Content

PPTX
Prometheus - Intro, CNCF, TSDB,PromQL,Grafana
PPTX
MeetUp Monitoring with Prometheus and Grafana (September 2018)
PDF
Prometheus Overview
PDF
Server monitoring using grafana and prometheus
PDF
Prometheus monitoring
PDF
Monitoring with prometheus
PDF
Introduction to Grafana
PDF
Cloud Monitoring tool Grafana
Prometheus - Intro, CNCF, TSDB,PromQL,Grafana
MeetUp Monitoring with Prometheus and Grafana (September 2018)
Prometheus Overview
Server monitoring using grafana and prometheus
Prometheus monitoring
Monitoring with prometheus
Introduction to Grafana
Cloud Monitoring tool Grafana

What's hot (20)

PDF
DevOps for beginners
PPTX
An introduction to DevOps
PPTX
Prometheus workshop
PPTX
DataOps introduction : DataOps is not only DevOps applied to data!
PPTX
Grafana
PPTX
Introducing DevOps
PPTX
Site Reliability Engineer (SRE), We Keep The Lights On 24/7
PPTX
OpenTelemetry For Operators
PPTX
Introduction to devops
PDF
Infrastructure & System Monitoring using Prometheus
PPTX
Prometheus with Grafana - AddWeb Solution
PDF
Observability, Distributed Tracing, and Open Source: The Missing Primer
PDF
Fall in Love with Graphs and Metrics using Grafana
PDF
Observability for modern applications
PDF
DevOps Best Practices
PDF
Azure Monitoring Overview
PPTX
Continues Integration and Continuous Delivery with Azure DevOps - Deploy Anyt...
PPTX
Grafana.pptx
PDF
Monitoring Kubernetes with Prometheus
ODP
Monitoring With Prometheus
DevOps for beginners
An introduction to DevOps
Prometheus workshop
DataOps introduction : DataOps is not only DevOps applied to data!
Grafana
Introducing DevOps
Site Reliability Engineer (SRE), We Keep The Lights On 24/7
OpenTelemetry For Operators
Introduction to devops
Infrastructure & System Monitoring using Prometheus
Prometheus with Grafana - AddWeb Solution
Observability, Distributed Tracing, and Open Source: The Missing Primer
Fall in Love with Graphs and Metrics using Grafana
Observability for modern applications
DevOps Best Practices
Azure Monitoring Overview
Continues Integration and Continuous Delivery with Azure DevOps - Deploy Anyt...
Grafana.pptx
Monitoring Kubernetes with Prometheus
Monitoring With Prometheus
Ad

Similar to System monitoring (20)

PPTX
Monitoring_with_Prometheus_Grafana_Tutorial
PDF
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
PDF
Prometheus-Grafana-RahulSoni1584KnolX.pptx.pdf
PPTX
Prometheus and Grafana
PDF
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
PDF
Prometheus Course from beginners to expert course
PDF
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
PDF
Prometheus course
PDF
DevOps Braga #15: Agentless monitoring with icinga and prometheus
PDF
Practical monitoring with Prometheus and Grafana Presentation.pdf
PDF
OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...
PPTX
Prometheus - Open Source Forum Japan
PDF
Microservices and Prometheus (Microservices NYC 2016)
PDF
Prometheus - basics
PPTX
An Introduction to Prometheus (GrafanaCon 2016)
PDF
Monitoring with Prometheus
PDF
OSMC 2017 | Monitoring MySQL with Prometheus and Grafana by Julien Pivotto
PPTX
Prometheus Training
PPTX
Prometheus (Prometheus London, 2016)
PPTX
Evolution of Monitoring and Prometheus (Dublin 2018)
Monitoring_with_Prometheus_Grafana_Tutorial
IRJET- Real Time Monitoring of Servers with Prometheus and Grafana for High A...
Prometheus-Grafana-RahulSoni1584KnolX.pptx.pdf
Prometheus and Grafana
Monitoring in Big Data Platform - Albert Lewandowski, GetInData
Prometheus Course from beginners to expert course
Your data is in Prometheus, now what? (CurrencyFair Engineering Meetup, 2016)
Prometheus course
DevOps Braga #15: Agentless monitoring with icinga and prometheus
Practical monitoring with Prometheus and Grafana Presentation.pdf
OSDC 2018 | Hardware-level data-center monitoring with Prometheus by Conrad H...
Prometheus - Open Source Forum Japan
Microservices and Prometheus (Microservices NYC 2016)
Prometheus - basics
An Introduction to Prometheus (GrafanaCon 2016)
Monitoring with Prometheus
OSMC 2017 | Monitoring MySQL with Prometheus and Grafana by Julien Pivotto
Prometheus Training
Prometheus (Prometheus London, 2016)
Evolution of Monitoring and Prometheus (Dublin 2018)
Ad

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PDF
cuic standard and advanced reporting.pdf
PDF
KodekX | Application Modernization Development
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Modernizing your data center with Dell and AMD
Electronic commerce courselecture one. Pdf
Advanced methodologies resolving dimensionality complications for autism neur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Monthly Chronicles - July 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The Rise and Fall of 3GPP – Time for a Sabbatical?
MYSQL Presentation for SQL database connectivity
Spectral efficient network and resource selection model in 5G networks
Review of recent advances in non-invasive hemoglobin estimation
Chapter 3 Spatial Domain Image Processing.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
cuic standard and advanced reporting.pdf
KodekX | Application Modernization Development
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Per capita expenditure prediction using model stacking based on satellite ima...
Understanding_Digital_Forensics_Presentation.pptx
Modernizing your data center with Dell and AMD

System monitoring

  • 1. SYSTEM MONITORINGSYSTEM MONITORING A guide to setup system monitoring on your systems or servers
  • 2. Why to even Monitor your sytem ? ● Monitoring a computer system is just as important as the system itself. ● Monitoring allows for proactive response rather than reactive, data security and data gathering and the overall good health of a computer system. ● While monitoring does not fix problems, it does lead to more stable and reliable computer systems. ● For example, monitoring may alert a System Administrator that a hard drive in a server is degraded. The System Administrator is alerted of this and swaps out the degraded hard drive with a new one. Without monitoring, the degraded hard drive could turn into a failed hard drive causing an extended outage and possible data loss.
  • 3. Monitoring Tools - Monitoring tools are used to continuously keep track of the status of the system in use, in order to have the earliest warning of failures, defects or problems and to improve them. - There are monitoring tools for servers, networks, databases, security, performance, website and internet usage, and applications. - ➔ Features ➔ To log real-time and historical information. ➔ To find optimal settings. ➔ To monitor the number of users on a network. ➔ To monitor network traffic (either in real time or covering a given length of time of operation with the analysis performed afterwards). ➔ To identify the problems and send an alert message to the administrator (e.g. network administrator).
  • 4. Tools Required Grafana An Open Source visualization and analytics software Prometheus A free software application used for event monitoring and alerting. Node Exporter A Linux Metric Exporter for Prometheus
  • 5. Prometheus - Prometheus is a free software application used for event monitoring and alerting. It records real-time metrics in a time series database built using a HTTP pull model, with flexible queries and real-time alerting. - Prometheus was created to monitor highly dynamic container environments like kubernetes docker swarm etc however it can also be used in a traditional non container infrastructure where you have just bare servers with applications deployed directly on them. - Features : ● A multi-dimensional data model with time series data identified by metric name and key/value pairs ● PromQL, a flexible query language to leverage this dimensionality ● No reliance on distributed storage; single server nodes are autonomous ● Time series collection happens via a pull model over HTTP ● Pushing time series is supported via an intermediary gateway ● Targets are discovered via service discovery or static configuration ● Multiple modes of graphing and dashboarding support
  • 6. Why use Prometheus ? Identify the source of problem
  • 8. Node Exporter - Prometheus pulls metrics data from the targets from an HTTP endpoint which by default is host address slash metrics and for that to work the targets must expose => /metrics endpoint . - Data available at slash metrics endpoint must be in the format that Prometheus understands and many services don't have native Prometheus endpoints so extra components are required. - Exporter is basically a script or service that fetches metrics from target and converts them into a format Prometheus can understand and exposes this converted data at its own slash metrics endpoint where Prometheus can scrape them. - Node Exporter is the Prometheus exporter for Linux servers.
  • 10. Setup and Configuration -1 (Prometheus and Node Exporter) ● First, download and add the GPG key with the following command: $ wget https://s3-eu-west-1.amazonaws.com/ deb.robustperception.io/41EFC99D.gpg | sudo apt-key add - ● Next, update the repository and install Prometheus with the following command: $ sudo apt-get update -y $ sudo apt-get install prometheus prometheus-node-exporter prometheus-pushgateway prometheus-alertmanager -y ● Once the installation is completed, start Prometheus service and enable it to start on boot time with the following command: $ sudo systemctl start prometheus $ sudo systemctl enable prometheus ● You can also check the status of Prometheus service with the following command: $ sudo systemctl status prometheus
  • 11. ● Configure prometheus.yml file to scrape metrics from node exporter which runs on PORT=9100. job_name: node # If prometheus-node-exporter is installed, grab stats about the local # machine by default. static_configs: - targets: ['localhost:9100'] ● Also change scrape_interval in the same config file so load on server is reduced. global: scrape_interval: 60s # By default, scrape targets every 15 seconds. evaluation_interval: 60s # By default, scrape targets every 15 seconds. Setup and Configuration -2 (Prometheus and Node Exporter)
  • 12. Grafana - Grafana is open source visualization and analytics software. It allows you to query, visualize, alert on, and explore your metrics no matter where they are stored. In general, it provides you with tools to turn your time-series database (TSDB) data into beautiful graphs and visualizations. - Grafana connects with every possible data source, commonly referred to as databases such as Graphite, Prometheus, Influxdb, ElasticSearch, MySQL, PostgreSQL etc. - Dashboard - The dashboards contain a gamut of visualization options such as geo maps, heat maps, histograms, all the variety of charts & graphs which a business typically requires to study data. See a demo board on - https://play.grafana.org/
  • 13. Setup and Configuration ● Installation $ sudo apt-get install -y apt-transport-https $ sudo apt-get install -y software-properties-common wget $ wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add - $ sudo apt-get update $ sudo apt-get install grafana-enterprise ● Setup ○ Start the server with systemd $ sudo systemctl daemon-reload $ sudo systemctl start grafana-server $ sudo systemctl status grafana-server ○ Configure Grafana to start at boot $ sudo systemctl enable grafana-server.service - By default Grafana runs at PORT 3000 which can be changed by editing /etc/grafana/grafana.ini ● Change http_port to your desired port. [server] http_port=8080
  • 14. Good luck! We hope you’ll use these tips to go out and deliver a robust monitoring for your product or service! Reference : ● https://youtu.be/h4Sl21AKiDg ● https://prometheus.io/docs/prometheus/latest /getting_started/