Skip to content
DevOpsbeginner

What is Grafana?

Updated Nov 30, 20263 min readBased on official documentation
What is Grafana?

In short

Grafana is open source software for querying, visualizing, and alerting on metrics, logs, and traces, wherever that data is stored. It turns raw time-series data into graphs and dashboards, so you can see how your systems behave over time and get notified when something goes wrong.

What Grafana does

Grafana is a tool for looking at data. Most of that data comes from software and servers: how much CPU a machine uses, how many requests a web app handles, or which errors show up in the logs. Grafana does not store this data itself. Instead, it connects to the places where the data already lives and shows it to you in a clear way.

The official documentation describes Grafana open source software (OSS) as a way to query, visualize, alert on, and explore your metrics, logs, and traces. Its main strength is turning time-series data into graphs. A time-series database (TSDB) is a store that records values along with the time they were measured, such as a CPU reading every ten seconds.

How it works

Grafana works through data sources. A data source is a connection to a database or service that holds your data. Grafana ships with support for many of them, and its plugin framework lets you add more, including SQL and NoSQL databases and tools such as ticketing systems and CI/CD services.

The main building blocks are:

  • Data sources: the connections to where your data is stored.
  • Dashboards: pages made of panels, where each panel shows a graph, a number or a table.
  • Explore: a view for running ad-hoc queries and comparing time ranges or data sources side by side.
  • Alerts: rules that watch a value and send a notification when it crosses a limit. Notifications can go to channels such as email, Slack, or PagerDuty.
  • Annotations: markers on a graph that show events, such as a deployment, so you can connect a change to what happened in the data.

When to use it

Grafana fits well when you want one place to watch many systems. Typical uses include infrastructure monitoring, application monitoring, and operational dashboards that a team checks during the day or during an incident.

It is also useful when your data is spread across tools. Because Grafana can connect to several data sources at once, you can put metrics, logs, and traces on the same screen instead of switching between separate interfaces.

For a beginner, a single dashboard is a good start. Once you have one working, you can add templates, permissions, and automation as your needs grow.

A simple example

Imagine you run a small web service and want to watch its response time. You would first connect Grafana to the database that stores those measurements. Then you would create a dashboard with a graph panel that queries the response time over the last hour. Finally, you could add an alert rule that sends a message when the average goes above a limit you choose.

If you later deploy a new version, you can add an annotation at the deployment time. When the graph changes, you can see right away whether the release caused it.

The documentation also describes a feature called provisioning. Provisioning lets you set up dashboards and data sources with a script instead of clicking through the interface. This helps when you need the same setup on many servers.

Common mistakes

A frequent beginner mistake is to think Grafana stores your data. It does not. If the data source is down or empty, Grafana has nothing to show. Check the connection to your data source first.

Another mistake is to build many dashboards by hand. Templates, called dashboard variables, let one dashboard serve several servers or regions, so you do not need a copy for each one. Hard-coded values make dashboards hard to reuse.

Finally, avoid asking general questions in the GitHub issue tracker. The documentation suggests the community forums for questions and troubleshooting, and reserves GitHub for reproducible bugs and specific changes.

Grafana is the visualization and alerting layer. Other tools in the same family handle storage and collection. The Grafana Labs projects include Loki for logs, Tempo for traces, and Mimir for long-term storage of Prometheus metrics. Grafana Alloy is a collector that gathers telemetry data and sends it onward. These tools are separate projects, so you can use Grafana with a different backend if you prefer.

FAQ

Is Grafana free to use?

Yes. Grafana OSS is open source and you can download and self-host it at no cost. Grafana Labs also offers Enterprise and Cloud editions, and Cloud includes a free tier.

Do I need a special database to use Grafana?

No, but you do need a data source that holds your data. Grafana connects to many databases and services, and common choices include time-series databases and SQL stores.

What is the difference between Grafana OSS, Enterprise, and Cloud?

OSS is the free, self-managed edition. Enterprise is also self-managed but adds commercial features and support. Cloud is fully hosted by Grafana Labs and bundles the backends for metrics, logs, and traces.

Can Grafana send alerts to my team chat?

Yes. Grafana Alerting can send notifications to channels such as Slack, email, and PagerDuty, depending on how you configure your alert notifiers.

Sources

This page is based on the official documentation below. Read it for full detail.

Grafana — official documentation ↗

Grafana in the news

blozhikDeveloper news from across the web, explained. Every story links to its original sources.