Roll a Dashboard Back to a Previous Version
A 4-step recipe with Grafana. We can help you get access.
Recipe · 4 steps
Roll a Dashboard Back to a Previous Version
with Grafana · Analytics & BI Management
Restore a dashboard to a known-good earlier version.
- Read the dashboard as it stands today, capturing the current version so the rollback can be described and, if needed, reversed.
- List the dashboard's version history, newest first, so the target version can be confirmed to exist and its commit message read.
- Fetch the full stored model of the target version. Read this before restoring so you know exactly what is about to become current.
- Restore the reviewed version. Grafana applies it as a new version on top of the history rather than deleting anything, so the broken version remains in the record.
What you'll need to have ready
- dashboardUid: UID of the dashboard to roll back.
- targetVersion: The version number to restore the dashboard to.
- limit: How many versions of history to list.
For your developer
Arazzo workflow grafana:rollback-dashboard-version, 4 operations: getDashboardByUid → getDashboardVersionsByUID → getDashboardVersionByUID → restoreDashboardVersionByUID. Specs on APIs.io.