This repository contains interactive wizard experiences for Grafana, designed by Developer Advocacy. It's designed to work with Cursor's AI assistant.
- Go to the Drilldown area on Ops, click "Open Grafana Pathfinder" button extreme upper right by Assistant button.
- Make sure you're on the home screen, check the Recommendations tab.
- Follow the Interactive Tutorial: Explore Drilldowns 101 by clicking the "View" button by that recommendation. We're going to build an interactive tutorial like that!
- Notice the structure: it's built in sections, of individual steps, with each step having a "Show Me" and "Do It" option.
- Make sure you have Cursor (trust me it's worth it). Download it.
- If you don't have acess, request cursor access in
#it-help
. You'll need it so you don't get rate limited - Sign in with your Grafana account after getting access
- Open in Cursor - This repo is Cursor-enabled with AI guidance
- Create a tutorial - Use the
/write My First Tutorial
command to start a new tutorial, giving it a name. - See an example - Check out
first-dashboard/unstyled.html
for a complete working example - Get help - Use
/lint
,/check
, and/attack
commands to Cursor for validation and testing of what you're writing as you go.
- Cursor has a bunch of docs on how these guides are structured and how this all works. (See
docs/
and.cursor
) you could read them all, or just ask Cursor to explain things as you go. - DOM selectors for elements (
data-reftarget
in the guides) is usually the trickiest part. New tooling on the way to help with that soon
- Talk to Tom Glenn, David Allen, or Simon Prickett, all of whom have done this before. They will help.
- Open a PR to this repo with your new guide! Ping Jay Clifford, Tom Glenn, or
David Allen in
#team-dev-advocacy
to get it merged. - We'll wire it into the recommender for you.
- MAKE SURE TO INCLUDE IN YOUR PR: When should users see your guide? What are they looking at in the UI when it appears as a recommendation? Who should see your guide? Admins only? Commercial stacks? Free stacks? "Everybody" is an acceptable answer. This determines how it will appear.
For complete AI reference documentation, see .cursor/README.mdc
. This contains
a full reference guide to all of the things that can be done, and how to use them.