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:
In this section, you commit dashboard changes directly to the main branch.
With the dashboard in edit mode and changes made, click Save. The Provisioned dashboard drawer opens.
In the Provisioned dashboard drawer, optionally confirm Repository folder. Leave empty for the repository root.
In the Provisioned dashboard drawer, confirm Filename.
For example,
http-monitoring.json.In the Provisioned dashboard drawer, confirm Branch is set to main. This commits changes directly to the main branch without creating a pull request.
In the Provisioned dashboard drawer, optionally enter a Comment describing your changes.
For example, enter
Add error rate visualization to HTTP monitoring dashboard.In the Provisioned dashboard drawer, scroll to the bottom if needed, then 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.