Member-only story
How to Install Prometheus and Grafana on Ubuntu 22.04 LTS — Configure Grafana Dashboard
7 min readSep 18, 2023
What is Prometheus ?
- Prometheus is an open-source Linux Server Monitoring tool mainly used for metrics monitoring, event monitoring, alert management, etc.
- Prometheus has changed the way of monitoring systems and that is why it has become the Top-Level project of the Cloud Native Computing Foundation (CNCF).
buymeacoffee ☕ 👈 Click the link
- Prometheus uses a powerful query language i.e. “PromQL”.
- In Prometheus, tabs are on and handle hundreds of services and microservices.
- Prometheus uses multiple modes for graphing and dashboarding support.
Prometheus Components
1. Prometheus Server
- The Prometheus server is the first component of Prometheus architecture.
- Prometheus server is a core of Prometheus architecture which is divided into several parts like Storage, PromQL, HTTP server, etc.
- In Prometheus server data is scraped from the target nodes and then stored in the database.
- 1.a. Storage
- Storage in the Prometheus server has local on-disk storage.
- Prometheus has many interfaces that allow integration with remote storage systems.
1.b. PromQL
- Prometheus uses its query language i.e. PromQL which is a very powerful querying language.
- PromQL allows the user to select and aggregate the data.
2. Service Discovery
- The next and very important component of the Prometheus Server is the Service Discovery.
- With the help of Service discovery, the services are identified which are need to scraped.
- To Pull metrics, identification of services and finding the targets are compulsorily needed.
- Through Service discovery, we monitor the entities and can also locate their targets.
3. Scrape Target
- Once the services are identified and the targets are ready then we can pull metrics from it and can scrape the target.
- We can export the data of the endpoint using node exporters.