Provisioning as code: versioned sources and dashboards

12 min
Audience
you have read lessons 01 and 02 and you know how to read a dashboard's JSON
Duration
45 to 60 min
Module
4/7
Target skill
explain how the kit's three sources and three dashboards arrive in Grafana without a click, read sources.yml and tableaux-de-bord.yml key by key, export a JSON from the interface, version it, and verify that a file modification is applied then reverted.

In one picture

A restaurant can work in two ways. Either the chef improvises every dish from memory: fast on the first day, impossible to reproduce when they leave. Or the kitchen keeps a recipe book: anyone reopens the book and makes the same dish again, and every recipe change is dated and reviewed. Grafana's provisioning is the recipe book: at startup, Grafana reads YAML and JSON files and creates the data sources and dashboards itself. The kit never asked you to click Add new connection: everything was in the book.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Grafana: dashboards that answer a question” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one