BeginnerLesson 2 of 9

What is Grafana

Understand Grafana as a visualization and alerting platform in the observability stack.

Simple Explanation (ELI5)

Grafana is a dashboard app that reads data from tools like Prometheus and shows it as charts, tables, and alerts.

Technical Explanation

Grafana does not usually store your monitoring data. It connects to data sources, runs queries, renders dashboards, and can trigger alert notifications. Core components include organizations, users/roles, data sources, folders, dashboards, panels, variables, and alert rules.

Visual Section

Prometheus
Grafana Query Engine
Panels / Alerts / Notifications

Hands-on Commands

bash
# Run Grafana locally
docker run -d --name grafana -p 3000:3000 grafana/grafana

# Check health
curl http://localhost:3000/api/health

# Default login: admin / admin

Debugging Scenarios

Real-world Use Case

Platform teams centralize dashboards in Grafana so developers, SREs, and managers use one source of operational truth.

Interview Questions

Beginner

What is Grafana used for?

Visualization, dashboarding, and alerting from multiple observability data sources.

Does Grafana replace Prometheus?

No. Prometheus stores and queries metrics; Grafana visualizes and alerts on them.

What is a Grafana panel?

A panel is one visual element in a dashboard backed by a query.

Can Grafana connect to multiple data sources?

Yes, including Prometheus, Loki, Elasticsearch, and cloud APIs.

What is a dashboard variable?

A reusable parameter for dynamic filtering like namespace or service.

Intermediate

How does Grafana handle RBAC?

Through organization roles, folder permissions, and in enterprise setups fine-grained RBAC.

Why use folders for dashboards?

To organize ownership, permissions, and lifecycle by team or domain.

Difference between classic and unified alerting?

Unified alerting centralizes rule evaluation and notification workflow across data sources.

How does Grafana improve incident response?

Shared dashboards and context reduce time to identify and communicate issues.

What causes slow dashboards?

Expensive queries, high-cardinality metrics, and too many high-refresh panels.

Scenario-based

A manager wants one dashboard for exec health and one for engineers. Why?

Different audiences need different detail levels and decision signals.

Dashboard loads but one panel says no data. First check?

Datasource selection and panel query labels/time range.

How do you prevent dashboard sprawl?

Ownership, naming standards, folder governance, and lifecycle review.

A team can view but not edit dashboards. Why?

Likely Viewer role or folder-level permission restriction.

Users report stale data in panels. Causes?

Long refresh interval, datasource query lag, or backend scrape delay.

Summary

Grafana is the operational UI for observability data. It shines when connected to strong data sources like Prometheus and structured dashboard practices.