- Documentation
- Learning Hub
- Section 4 of 5 CI/CD automation
Reliable, repeatable updates
Slide 4 of 4
Same UID, same dashboard
A reliable pipeline produces the same result no matter how many times you regenerate and merge. For Git Sync, that depends on a stable dashboard UID in your Foundation SDK code.
When Git Sync pulls dashboard JSON, Grafana overwrites an existing dashboard that has the same uid. If the UID changes every run, you risk creating additional dashboards instead of updating one.
builder := dashboard.NewDashboardBuilder("My Dashboard").
Uid("my-dashboard") // Same UID = update, not a second dashboardWhat to expect after merge
Why the review gate still matters
CI that checks generated JSON on the pull request keeps the committed files honest. Reviewers see the JSON diff before merge. After merge, Git Sync applies what is in Git, so the reviewed files are what Grafana receives.