Query management in panels, possible to use external query storage

  • What Grafana version and what operating system are you using?

v9.2.0

  • What are you trying to achieve?

I’m using a lot of queries and many are huge (more than 200 lines).
I’d like to extract those queries and store it in a version control system or somewhere it could versionned.
And later in panels instead of pasting query content, using a file path or URL should be interesting.

  • How are you trying to achieve it?

Searching for information with no luck.
Tested gdg cli to import / export dashboards but maintaining queries inside json seems too complex.

  • What happened?

  • What did you expect to happen?

If someone has already managed something similar i’d be interested by its feedback.

Thanks

Vincent