Skip to main content
Skip table of contents

Metabase Reports Setup

To set up Metabase reports:

1. Go to Metabase and log in with the admin user.


2. Click on the settings gear icon, then click on admin settings:

image-20251015-120455.png

3. Then, on the admin page, click on databases, then click on Add database:

image-20251015-120816.png

4. Add database and click save (Remember the Display name of the database, which we will use in the import command):

During update change database “expertflow” .

image-20251015-120955.png

5. Go to Table Metadata to verify that all the tables are visible.

image-20251107-055151.png

6. Please make sure that all the tables are not hidden. If any table is hidden, unhide the table by clicking the cross-eye icon.

image-20251107-055532.png

7. After successfully creating the database, go to this location on the Metabase machine:

CODE
cd kubernetes/external/metabase-reports/metabase_reporting_update_tool/

8. Run the following command:

Before running the command, ensure you choose the correct folder for MySQL or MSSQL reports

CODE
For Multi-tenancy, set the tenant collection name like: "T1 Reports" and use the database name created for the tenant in the command.

python3 metabase_import.py https://<Metabase-FQDN>/metabase/api/ <admin-email> <admin-password> <db-display-name> <mysql> "<Tenent-collection-name>"

EXAMPLE: python3 metabase_import.py https://t1.expertflow.com/metabase/api/ metabaseadmin@gmail.com password123 cim_etl_report mysql "EF Reports"

The command may take some time to complete.
If it runs successfully, you’ll see “✓ Cards imported” at the end.
If not, it will display an error message.

9. After running the command, go to Metabase, click the report folder, click the (…) icon, then click Move questions into their dashboards:

image-20251015-130231.png

10. Next, click on Preview the changes:

image-20251015-130438.png

11. Next, click on Move these questions:

image-20251015-130533.png

12. Reports are now successfully imported.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.