I have a staging server and a production server, both with the same set of elements and drivers. My goal is to create dashboards on the staging server first and then migrate them to the production environment.
However, when creating queries, I need to select the server ID and element ID, which makes the queries environment-specific.
Is there an easy way to replace these IDs with the corresponding ones from the production environment once the dashboard is migrated?
Hi Anna
Recently we have developed a new datatype, named 'variables', that can be used for exactly this use case. Variables can be used to create a single (constant) value that can be used all over the dashboard. Changing this value would then change it everywhere that it is used. In your use case you could then create 2 variables (server ID & element ID) that can be used in all queries. This feature will be available from DataMiner 10.3.0 [CU21], 10.4.0 [CU9] & 10.4.12 onwards.
In older versions, there is no easy way to do this. An options could be to look at the saved file (C:\Skyline DataMiner\dashboards\FOLDER NAME\DB NAME.dmadb.json) for the dashboard and use a find & replace there for these values. Note that this can very easily break configurations.
Hi Anna,
As far as I know there is no easy way to modify the IDs. In other integrations we created scripts that will go through the dashboards (JSON files) and update the ID where required. However, I would not recommend this approach since it is prone to errors.
In the meantime, I would suggest to review the GQI queries that you are using in your dashboard. If the native data sources don't allow you to pass an element name as reference, then you could create an adhoc data source as alternative.
Hope it helps.
Thank you! This option seems to be very helpful.