@tim0_12432/grafana-dashboard-to-scenes
v1.0.2
Published
Generate a single Grafana Scenes app from a directory of Grafana dashboard YAML/JSON files
Downloads
410
Maintainers
Readme
Converter for transforming dashboard yaml/json definitions to a React scenes application
Getting Started
npx @tim0_12432/grafana-dashboard-to-scenes -i ./dashboards -o ./scenes-appAdditional Parameters
-n,--name: Define the name your generated application will have-r,--recursive: Dive deeper into subdirectories to find all dashboards-s,--css: Provide a css file that will be injected in your application, e.g. modern-scenes.css-c,--colors: Provide a json file with a mapping between grafana colors and your theme, e.g. colors.json
Known Issues
Currently there is still a bug leading the typecheck in the generated typescript panels to fail. A workaround is to add a
// @ts-nocheckat the top of each generated dashboard.
