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.
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.
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.
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.