Migrate MonitorDashboard to Perses
TOC
OverviewPrerequisitesMigrate a DashboardConversion RulesImport Grafana JSONAfter MigrationRelated OperationsOverview
Starting from Alauda Container Platform 4.4, Perses monitoring dashboards are available alongside the existing MonitorDashboard capability. You can migrate existing MonitorDashboard resources to PersesDashboard resources and render them from Operations Center > Monitor > Dashboards (Perses).
The migration converts the Grafana-style MonitorDashboard model to the PersesDashboard model. The source MonitorDashboard is retained and remains available from the existing monitoring dashboard entry.
Migration is selective. You choose the MonitorDashboard resources to migrate and trigger the conversion by adding a migration label with kubectl.
Prerequisites
Before migrating dashboards, make sure the following requirements are met:
- The target cluster has installed Alauda Container Platform Dashboard for Perses.
- The
globalcluster has installed Alauda Container Platform Dashboard Essentials. - You have read permission for the source MonitorDashboard resources.
- You have create or write permission for the target PersesDashboard resources.
For component installation, see Installation.
Migrate a Dashboard
Migration is triggered by adding the cpaas.io/migrate-to-perses=true label to a MonitorDashboard resource.
-
List MonitorDashboard resources and identify the dashboard that you want to migrate.
-
Add the migration label to the MonitorDashboard resource.
-
Verify that the PersesDashboard resource is generated.
The generated PersesDashboard is named
<source-monitor-dashboard-name>-pd. -
In the console, go to Operations Center > Monitor > Dashboards (Perses) and verify that the migrated dashboard is listed and can be opened.
- To migrate multiple dashboards, run the label command for each dashboard. You can migrate dashboards in batches.
- Migration does not delete or modify the source MonitorDashboard. The original dashboard and entry remain available.
- The user running the command must have permission to read MonitorDashboard resources and write PersesDashboard resources.
Conversion Rules
The migration tool converts MonitorDashboard content to the PersesDashboard model.
Import Grafana JSON
If you have Grafana dashboard JSON instead of a MonitorDashboard resource, you can import it from Perses Monitoring Dashboards. Open the Create drop-down menu, select Import dashboard, and provide the JSON content.
Grafana JSON import uses a lossy Grafana-to-Perses conversion. Only chart types and functions supported by the current platform version are preserved.
After Migration
- The generated Perses dashboard is an editable custom dashboard.
- The source MonitorDashboard remains available from the existing monitoring dashboard entry.
- If a source dashboard does not contain the
cpaas.io/display-nameannotation, the migrated dashboard may show the Kubernetes resource name in the Perses dashboard list. This does not affect rendering or metric queries.