Grafana, end to endGrafana foundations: data sources, dashboards, variables and logs
6 lessons · about 102 minutes of reading · Helmsman Pro
This page is the public course outline. Lessons, labs, tools and exams open after you sign in to your free account.
Sign in and start
In short
Grafana from first install to dashboards people rely on: editions and the LGTM stack, secure configuration with SSO and folder permissions, data sources, Explore and Drilldown, dashboard design with RED and USE, variables and links, and logs with Loki and LogQL.
Before you start: Course 50 (Prometheus foundations) or basic PromQL.
What you'll learn
- Grafana queries data sources; it doesn't store your metrics
- OSS (AGPLv3), Enterprise and Cloud; managed options on Azure and AWS
- LGTM: Loki, Grafana, Tempo, Mimir, with Alloy and Pyroscope
- Grafana 13: dynamic dashboards (schema v2) and Git Sync GA
- Config: defaults.ini < grafana.ini < GF_ environment variables
- PostgreSQL or MySQL instead of SQLite for production and HA
- SSO with group-to-role mapping; disable the login form afterwards
- Orgs > teams > folder permissions; service accounts for automation
- Data sources hold connections; give them least-privilege credentials
- Builder mode to learn and share; code mode for precision
- Explore for investigations; Drilldown apps for queryless browsing
- Data links, correlations and exemplars join metrics, logs and traces
Lessons
1. What Grafana is: editions, the LGTM stack and Grafana 13
Grafana's role as the visual layer for metrics, logs, traces and profiles; OSS, Enterprise and Cloud; the LGTM stack (Loki, Grafana, Tempo, Mimir) with Alloy and Pyroscope; and what Grafana 13 brought.
Sign in to open the lesson
2. Install, configure and secure Grafana
Install Grafana, configure it with grafana.ini and environment variables, choose its database, set up sign-in with Entra ID or another identity provider, and manage organisations, teams, roles, folders and service accounts.
Sign in to open the lesson
3. Data sources, queries, Explore and Drilldown
Connect Prometheus, Loki, Tempo, Azure Monitor and SQL data sources securely, write queries in builder and code modes, investigate with Explore and the Drilldown apps, and correlate signals.
Sign in to open the lesson
4. Building dashboards that people use
Design dashboards around RED, USE and the golden signals; choose panels; set units, thresholds, overrides and transformations; and lay them out with dynamic dashboards (tabs, rows and conditional rendering).
Sign in to open the lesson
5. Variables, templating, repeats and links
Make one dashboard serve every environment and service with query, custom, interval and ad hoc filter variables; chain them; repeat panels and rows; and link dashboards together.
Sign in to open the lesson
6. Logs with Loki and LogQL
How Loki stores logs cheaply, choosing good labels, LogQL log and metric queries with filters and parsers, structured metadata, and what Loki's new architecture changes.
Sign in to open the lesson
Common questions
Which Grafana Labs project is the collector for metrics, logs and traces?
Grafana Alloy.
How do you read a secret from a file in an environment variable?
Append __FILE to the variable name, such as GF_SECURITY_ADMIN_PASSWORD__FILE.
Which Drilldown app helps you browse logs without writing LogQL?
Logs Drilldown.
Which unit should an error ratio from 0 to 1 use?
Percent (0.0-1.0), called percentunit in JSON.
Which variable type lets one dashboard switch between Prometheus servers?
A data source variable.
What does | unwrap do?
Turns a parsed numeric field into sample values for range aggregations such as quantile_over_time.