How to move a dashboard from application builder to cockpit in same tenant

Product/components used and version/fix level:

Current version on eu-latest

Detailed explanation of the problem:

I (and also some partners) have built a number of vertcal applications based on Application Builder tool and now we need to move all dashboards to cokpit in the same tenant.

Error messages / full error message screenshot / log file:

Question related to a free trial, or to a production (customer) instance?

What is the best / simplest way to do that without havoing to recreate all dashboards in cockpit

Hi @GiovanniLuca.Favalli,

I’m not 100% familiar with all the possible dashboard usecases in app builder.
I’ve been able to migrate some app builder dashboards, I’ve created for testing purposes, using the attach nodejs project into cockpit reports.
migrate-app-builder-dashboards.zip (3.8 KB)

Inside the nodejs project you would need to adjust the baseUrl, tenantId, username and password variables in the index.js file.
Afterwards you need to install it’s dependencies using npm ci command and you can then start it using node .

The dashboards can afterwards be found in the Reports section of the cockpit app. You might need to install any none default widgets into cockpit.

Functionality whise, the script does the following things:

  • Get all app builder dashboards (managedObjects with the c8y_Dashboard!name!app-builder-db fragment)
  • Per app builder dashboard create a report managedObject
  • Link the report managedObject to the app builder dashboard

Regards,
Tristan

1 Like

Hi Tristan

thanks for your feedback. Unfortunately it look I have restrictions on SAG laptop even if I have elevated admin rights:

any suggestion?

Try to install node properly with elevated rights and try to avoid PowerShell but use Windows Terminal, Command Prompt, WSL Ubuntu etc.

Hi @GiovanniLuca.Favalli,

I’ve added a plugin to the community plugins in order to perform this migration via the UI.

Regards,
Tristan