Grafana: What Is Grafana?
Grafana is a free tool that draws dashboards from numbers stored elsewhere. It stores no metrics itself: it asks a data source questions and turns the answers into graphs.
Prometheus vs Grafana
The two tools do different jobs. Together they form the stack this course teaches.
Prometheus: collects and stores numbers
Grafana: asks questions and draws graphsGrafana vs Kibana
Both draw dashboards. They differ in what they read.
Grafana: reads metrics from Prometheus
Kibana: reads log lines from ElasticsearchPrometheus vs Zabbix
Both monitor systems. They differ in how they collect and store data.
Prometheus: pulls metrics pages, stores time series
Zabbix: agents push checks, stores in a databaseExample
curl -s http://127.0.0.1:13101/api/healthKey points
- Grafana: a dashboard tool that turns stored numbers into graphs and tables.
- Grafana stores no metrics and asks Prometheus for them instead.
- A dashboard is a page of panels, and each panel shows one question as one picture.
- A panel can be a graph over time, a single big number, a gauge, or a table.
- Kibana is the dashboard tool for log search, while Grafana is the dashboard tool for metrics.
- Zabbix is an older monitor that watches servers and services with its own agents.
In this example, Grafana answers its own health check with the database marked ok and the version 13.3.1. Grafana is running, but it shows no graphs until a data source is connected, which is lesson 9.
Note
Grafana needs a data source to be useful, since on its own it shows nothing.
Try it Yourself
Edit the code, then press Run.
Running is simulated · Rust Playground
Exercise
What does Grafana itself store?