Skip to content

Repository files navigation

Metabase VCS

Documentation Status

An attempt to serialize and keep dashboards in a VCS such as git

Tracking Metabase Dashboards

So far metabase_vcs will only track dashboards, and this dashboards needs to be declared at the tracked.json file at the root of your repo

example of a tracked.json file:

{
"dashboards": [
        {
                "name": "dashboard_one", # this will be the name of the json file exported
                "id": 147   # the metabase dashboard id
        },
        {
                "name": "dashboard_two",
                "id": 166
        }
        ]
}

Create a 'dashboards' dir at the root of your repo then run

metabase_vcs export-metabase

This script will create json files represeting dashboards at this dashboards dir

Then you can change a tracked dashboard, run the export-metabase again and check the diffs

git diff dashboards/

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

An attempt to version control metabase dashboards

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages