Save changes with a direct commit
Saving dashboard changes with a direct commit pushes modifications immediately to the main branch in GitHub. This workflow suits quick updates, trusted changes, or environments where dashboard modifications don’t require team review before deployment.
To save changes with a direct commit, complete the following steps:
With the dashboard in edit mode and changes made, click Save dashboard.
In the Provisioned dashboard panel, review the save options.
Git Sync displays options for updating default values, specifying the file path, choosing the workflow, and adding a commit message.
Optionally, check Update default refresh value to make the current refresh interval the new default.
Optionally, check Update default variable values to make the current variable values the new defaults.
In the Path field, confirm or modify the file path in the repository. The path typically remains the same as when you first saved the dashboard, for example
dashboards/http-monitoring.json.For Workflow, select Push to main. This commits changes directly to the main branch without creating a pull request.
In the Comment field, enter a commit message describing your changes.
For example, enter
Add error rate visualization to HTTP monitoring dashboard.Click Save.
The dashboard changes are committed to the main branch in GitHub. Git Sync creates a commit with your message and pushes it to the repository. The dashboard is updated in both Grafana and GitHub.
In the next milestone, you’ll learn how to save changes using a pull request workflow.
