hi everyone,
i would like to know if there is a way to "connect" dashboards to different databases so i can visualize the same statistics for different data, without having to recreate everything.
anyone can help ?
have a great day
hi everyone,
i would like to know if there is a way to "connect" dashboards to different databases so i can visualize the same statistics for different data, without having to recreate everything.
anyone can help ?
have a great day
Hi @armandviolle
No, since each question is connected to a database.
You would have to use something like Serialization to create your "template", which you would then create as many times as you have databases:
https://www.metabase.com/learn/data-diet/analytics/serialization.html
hi again @flamber,
i read the documentation and i'm not sure about a thing or two.
Hi @armandviolle, Serialization is an Enterprise feature.
The idea behind serialization is that you can dump all instance objects into yaml files, so you can modify these and even version them with git and deploy (load) these files in the same or other server/s
I hope this is clear, otherwise let me know
regards,
Luis
Hi @Luiggi,
thank you for your answer, it is very clear.
If i understand well, there is not the possibility of "connecting" the dashboard to another database ; i would have to change it directly on the query page for each query right ?
regards,
Armand
In Metabase questions are "tied" to a data source. So if you have 10 questions connected to a specific data source and you want to "switch" the data source (making the same 10 questions to another data source), you have to re-create manually those questions (or do it vía API calls or with the Enterprise serialization feature)
I hope you find this info useful
Simple way is to change the connection string to point to the new database hostname and db name etc, under "Metabase admin" -> "Databases" setting and click "Resync database Schema now" and/or "Rescan Field values". Vola, no change anywhere else in your "Question" or "SQL Query" or in the "Dashboard".
The existing dashboards will start populating the new data for the newly configured database.