Skip to content

Grafana

In one line

Grafana is an open-source analytics and visualization platform that creates dashboards from multiple data sources.

In simple words

Grafana is a visualization tool that creates beautiful, interactive dashboards for your metrics and logs. It does not collect data itself — instead, it connects to data sources like Prometheus, InfluxDB, Elasticsearch, or Loki and visualizes the data.

With Grafana, you create dashboards that contain panels — graphs, gauges, tables, heatmaps, and more. Each panel runs a query against a data source (e.g., a PromQL query against Prometheus) and displays the result.

Grafana also supports alerting — you can set thresholds on your panels and get notified via Slack, email, PagerDuty, etc. It is the most popular visualization tool in the DevOps world and is often paired with Prometheus.

Example

json
{
  "title": "CPU Usage Dashboard",
  "panels": [
    {
      "type": "graph",
      "title": "CPU Usage Over Time",
      "datasource": "Prometheus",
      "targets": [
        { "expr": "rate(cpu_seconds_total[5m])" }
      ]
    }
  ]
}

A Grafana dashboard panel that queries Prometheus for CPU usage rate over a 5-minute window.

How it works

  1. You connect Grafana to data sources (Prometheus, Loki, etc.).
  2. You create dashboards with panels that query the data sources.
  3. Grafana runs the queries and renders visualizations.
  4. You can set up alerts that fire when query results cross thresholds.

Common confusions

  • Confused with: Prometheus

    The difference: Grafana visualizes data from multiple sources; Prometheus is a specific monitoring system that collects and stores metrics. Grafana often uses Prometheus as a data source.

Related terms

Decode error messages

Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.

View errors

← Back to glossary