Skip to content
Tutorials Center
My learning

Topics

Grafana Tutorial

Learn Grafana step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is Grafana? Learn what Grafana is, what problems it solves, how it turns metrics, logs and traces into dashboards and alerts, and what you will build in this course.
  2. 2 The Grafana Ecosystem and the LGTM Stack Understand how Grafana fits with Prometheus, Loki, Tempo, Mimir, Alloy and exporters, what each component stores, and how metrics, logs and traces connect.
  3. 3 Installing Grafana OSS Install Grafana OSS with Docker, apt or yum on Linux, the Windows installer or Homebrew, start the service, open port 3000 and sign in for the first time.
  4. 4 First Login and a Tour of the Interface Tour the Grafana interface after your first login: the main menu, Home, Dashboards, Explore, Connections, Alerting, Administration, command palette and profile settings.
  5. 5 Your First Dashboard Build your first Grafana dashboard with the TestData data source: add a visualization, write a query, set a title and unit, save it in a folder and adjust the time range.

Concepts and Setup

  1. 6 Core Concepts: Organizations, Folders, Dashboards and Panels Learn Grafana's building blocks: organizations, users, teams, roles, folders, dashboards, panels, queries and data frames, and how they relate to each other.
  2. 7 Configuring Grafana with grafana.ini and Environment Variables Configure Grafana with grafana.ini, custom.ini and GF_ environment variables: server, database, security, auth, SMTP and logging sections, plus precedence rules.
  3. 8 Running Grafana with Docker Compose Set up a local monitoring lab with Docker Compose: Grafana, Prometheus and node_exporter with volumes, a Prometheus scrape config and a provisioned data source.
  4. 9 Time Series Data, Time Ranges and Time Zones Understand time series data in Grafana: timestamps, intervals, min step, max data points, relative and absolute time ranges, time zones, refresh and the $__interval variable.

Data Sources

  1. 10 Data Sources Overview Learn what Grafana data sources are, which built-in and plugin types exist, how to add and test one, proxy versus direct access, the Mixed source and query caching.
  2. 11 The Prometheus Data Source and PromQL Basics Connect Grafana to Prometheus and learn PromQL essentials: selectors, label matchers, rate, sum by, histogram_quantile, instant versus range queries and the query editor.
  3. 12 The Loki Data Source and LogQL Basics Connect Grafana to Loki and learn LogQL: stream selectors, line filters, parsers, label filters, metric queries like rate and count_over_time, and the Logs panel.
  4. 13 SQL Data Sources: MySQL, PostgreSQL and SQL Server Query relational databases from Grafana: connection settings, read-only users, time series and table formats, macros like $__timeFilter and $__timeGroup, and safe patterns.
  5. 14 Other Data Sources: InfluxDB, Elasticsearch, CloudWatch and Plugins A tour of other Grafana data sources: InfluxDB, Elasticsearch/OpenSearch, CloudWatch, Azure Monitor, Tempo, TestData, Infinity for JSON/CSV APIs, plus how to install plugins.

Panels and Visualizations

  1. 15 Panel Basics: The Editor, Options and Inspect Learn how Grafana panels work: the panel editor layout, the Query, Transform and Alert tabs, standard options, repeat options, library panels, panel links and the Inspect drawer.
  2. 16 The Time Series Panel: Lines, Bars, Points and Axes Master the Grafana Time series panel: draw styles, line interpolation, fill, stacking, axes and soft limits, legends, tooltips, null handling, annotations and series overrides.
  3. 17 Stat, Gauge and Bar Gauge Panels Show current values in Grafana with Stat, Gauge and Bar gauge panels: value options and calculations, thresholds, color modes, sparklines, orientation and text size.
  4. 18 The Table Panel: Columns, Cell Types and Sorting Build useful tables in Grafana: instant queries, column overrides, cell display modes, sorting and filtering, footers with totals, data links and pagination.
  5. 19 Thresholds, Value Mappings, Overrides and Other Panel Types Customize Grafana panels with thresholds, value mappings, field overrides and color schemes, then survey other visualizations: bar chart, pie chart, heatmap, logs, state timeline and more.

Queries and Transformations

  1. 20 The Grafana Query Editor, Query Options and Query Inspector Learn how the Grafana query editor works: queries A, B, C, max data points, min interval, $__interval, relative time and the Query Inspector for debugging.
  2. 21 Prometheus Queries in Grafana: rate, Legends and $__rate_interval Write PromQL in Grafana: builder versus code mode, rate and increase on counters, $__rate_interval, legend formats, instant versus range queries and table output.
  3. 22 SQL and Loki Queries in Grafana: Macros, Time Series and Logs Use Grafana's SQL macros such as $__timeFilter and $__timeGroup, shape results for time series or tables, and write Loki LogQL log and metric queries.
  4. 23 Grafana Transformations: Join, Group, Calculate and Reshape Data Reshape query results in Grafana with transformations: merge, join, group by, reduce, calculate field, filter, organize fields and convert types, with a runnable pipeline stand-in.
  5. 24 Grafana Expressions, Mixed Data Sources and Reusing Query Results Combine queries with server-side expressions (Math, Reduce, Resample, Threshold), use the Mixed data source and reuse results with the Dashboard data source.

Dashboards and Variables

  1. 25 Grafana Dashboard Variables: Query, Custom, Interval and Multi-Value Make Grafana dashboards reusable with variables: query, custom, interval, text box, data source and ad hoc filters, multi-value formats, All option and chained variables.
  2. 26 Repeating Panels and Rows in Grafana, and the 24-Column Grid Build dashboards that grow with your data: repeat panels and rows by a multi-value variable, control direction and max per row, and understand Grafana's 24-column grid.
  3. 27 Grafana Annotations, Data Links and Dashboard Drilldowns Mark events on graphs with annotations, connect dashboards with dashboard, panel and data links, pass variables and time range in URLs, and use value mappings.
  4. 28 Grafana Time Ranges, Time Zones and Auto Refresh Explained Master the Grafana time picker: relative ranges like now-6h and now/d, rounding, time zones, week start, auto refresh, minimum refresh interval and URL parameters.

Alerting

  1. 29 Grafana Alert Rules: Queries, Conditions, Pending Period and States Create Grafana-managed alert rules: queries plus Reduce and Threshold expressions, evaluation groups, pending period, labels, annotations, No Data and Error handling, and alert states.
  2. 30 Grafana Notification Policies: Routing, Grouping and Timing Route Grafana alerts with the notification policy tree: root policy, label matchers, nested policies, continue matching, group by, group wait, group interval and repeat interval.
  3. 31 Grafana Contact Points, Webhooks and Notification Templates Set up Grafana contact points for email, Slack, PagerDuty and webhooks, read the webhook payload, and write notification templates with Go template syntax and custom template blocks.
  4. 32 Grafana Silences, Mute Timings and Handling Alert Noise Pause Grafana notifications the right way: one-off silences with matchers, recurring mute timings, pausing rules, and a practical plan for reducing alert noise and fatigue.

Administration and Provisioning

  1. 33 Grafana Provisioning: Data Sources, Dashboards and Alerting as Files Configure Grafana from files instead of clicking: provisioning folders, data source YAML, dashboard providers, alerting provisioning, environment variables and the Terraform and API options.
  2. 34 Grafana Users, Teams, Organizations, Roles and Permissions Control who can see and change what in Grafana: organizations, basic roles, teams, folder and dashboard permissions, service accounts, RBAC and authentication providers.
  3. 35 Dashboards as Code: The Grafana JSON Model, API and Generators Understand the Grafana dashboard JSON model (uid, panels, gridPos, targets, templating), export and import, the HTTP API, and generate and lint dashboards with code.

Projects and Practice

  1. 36 Project: Build a Service Health Dashboard with the RED Method Design and build a service health dashboard in Grafana using the RED method: requests, errors and duration, with variables, thresholds, annotations, drilldown links and JSON export.
  2. 37 Project: An End-to-End Grafana Alerting Pipeline and Practice Set Design a complete alerting pipeline in Grafana: SLO-based alert rules, notification policy tree, contact points, mute timings and silences, then practice with review exercises.