Skip to content
tezvyn:

Grafana: Your Single Pane of Glass for Observability

Source: grafana.comEasyHow cards are made

Grafana: Your Single Pane of Glass for Observability

Grafana is the universal dashboard for your system's health, visualizing metrics, logs, and traces from different sources in one place. Use it to monitor application performance and infrastructure health.

Why it exists

Modern systems generate data in many different formats and store it in separate systems: metrics in Prometheus, logs in Loki or Elasticsearch, and traces in Jaeger. Without a unified view, engineers have to jump between multiple tools to correlate a problem, slowing down incident response. Grafana was created to solve this fragmentation.

The mental model

Grafana is a universal visualization layer, not a database. Think of it as a customizable TV that can display channels from many different providers simultaneously. You connect it to your data "channels" (Prometheus, InfluxDB, PostgreSQL, etc.), and then you arrange widgets on a dashboard to display the specific information you need, all in one place. It reads data, but it doesn't store it.

How it works

Grafana operates on a simple principle: connect, query, visualize. First, you configure a "data source," which tells Grafana how to connect to a database or API, like the URL for a Prometheus server. Second, within a dashboard panel, you write a query in the language of that data source (like PromQL for Prometheus). Grafana sends the query, gets the data back, and third, renders it as a graph, a table, a gauge, or another visualization type. It supports a vast ecosystem of plugins for different data sources and panel types.

When to use it

Use Grafana when you need to correlate information from multiple systems. It's ideal for building SRE dashboards that show service-level objectives (SLOs), monitoring infrastructure health (CPU, memory, disk usage), visualizing application performance metrics (request rates, error counts, latency), and creating business intelligence dashboards from SQL databases.

When not to use it

Grafana is not a data storage solution. Don't try to send raw logs or metrics directly to Grafana to be stored; it needs a backend database like Loki or Prometheus. It's also not a log analysis tool for deep, free-text searching like Splunk or Kibana, though it can display logs from them. Finally, it's not an event streaming platform like Kafka.

One canonical example

An SRE team wants to monitor a web service. They create a Grafana dashboard with several panels. One panel queries a Prometheus data source to show a graph of the 95th percentile request latency. A second panel queries Loki to show a live feed of logs filtered for "level=error". A third panel queries a PostgreSQL database to show a table of new user sign-ups per hour. When an alert fires for high latency, the on-call engineer can look at this single dashboard to see the latency spike, corresponding error logs, and impact on user sign-ups simultaneously.

Interview question

What is Grafana's primary function in an observability stack?

  • a.To act as an event streaming platform for real-time data processing.
  • b.To store all monitoring data, including metrics, logs, and traces.
  • c.To perform deep, free-text analysis on log data for incident investigation.
  • d.To provide a unified visualization interface for data from various sources.Correct
Why?

Grafana is described as a "universal visualization layer" that connects to various data sources to display information in one place. It is explicitly stated that Grafana is not a data storage solution, a deep log analysis tool, or an event streaming platform.

Just read this? Test yourself on what you have been reading.

Read the original → grafana.com

You just looked this up. Could you explain it out loud?

That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on monitoring — each one lists the topics its interview covers.

See open roles