Skip to content
BENIBIX Learn

Prometheus vs Grafana

People think Grafana collects the numbers on its charts, and it does not. Prometheus visits each app on a timer, reads its numbers and stores them. Grafana reads from a store like Prometheus and draws the charts. One keeps the data and the other shows it. Most teams run the two side by side.

Infrastructure📈 Monitoring & Observability

Prometheus

A free tool that reads numbers from apps on a timer and keeps them.

Prometheus is a free, open source tool for collecting and storing metrics. It visits each app on a schedule and reads its numbers from a web page. This is called scraping. Every number is saved with its time and labels. You ask questions with its own query language, PromQL. A part called Alertmanager sends out the alerts.

Example
Jack's Prometheus reads each server every 15 seconds. One query shows the error rate of the whole shop for the last hour.
Why it matters
It is one of the most used tools for metrics. Many apps already offer a page in its format.
Full entry
Infrastructure📈 Monitoring & Observability

Grafana

A free tool that turns stored data into live charts on one screen.

Grafana is an open source tool for building dashboards. It does not collect data itself. It connects to places that store data, like Prometheus or a database. It turns what it finds into charts, tables and maps on one screen. It can also send alerts and help you explore logs and traces.

Example
Lucy's team keeps one Grafana screen on the office TV. It shows requests, errors and response time for the shop, from Prometheus.
Why it matters
Numbers in a store help nobody until someone can see them. A shared dashboard gives the team one view.
Full entry

In one line

Prometheus
A free tool that reads numbers from apps on a timer and keeps them.
Grafana
A free tool that turns stored data into live charts on one screen.