Metabase
Peaka and Metabase integration brings together the power of Peaka’s data platform with the visualization capabilities of Metabase’s business intelligence platform. With this integration, customers can leverage Peaka’s robust data processing and management capabilities to feed into Metabase’s intuitive and interactive dashboards. This allows users to create compelling analytics dashboards that provide meaningful insights into their data.
Metabase has both hosted service and on-premise offerings. We will walkthrough setup process for the both version.
Metabase Cloud Setup
You need 2 steps to complete Metabase Cloud setup:
- Generate Peaka API Key
- Setup Peaka Integration with Starburst Connector
Generate Peaka API Key
After you create your project, setup connections and create your catalogs in Peaka, you need to generate a Peaka API Key to use it with Metabase Connector. Check out Peaka Documentation for creating your API Key and follow detailed instructions by clicking here.
Setup Peaka Integration with Startburst Connector
The Peaka Metabase integration uses the Starburst Connector right now. Startburst Connector is offical partner driver which is provided in Metabase Cloud offering.
- In order to add Peaka as data source, go to your Metabase Home page. Click settings icon on the top right corner of the screen and click Admin Settings button as shown in the screenshot below.
![](https://cdn.peaka.com/bi-tools/metabase/metabase-1.png)
- On the next screen click Databases from the top toolbar.
![](https://cdn.peaka.com/bi-tools/metabase/metabase-2.png)
- On the next screen click Add database button.
![](https://cdn.peaka.com/bi-tools/metabase/metabase-3.png)
- Add database form will open and you need to add your connection details on this screen. Select Starbust for Database Type. Then give a name to your database connection. For the host name enter dbc.peaka.host. For the port enter 4567. As for the Catalog Name and Schema Name enter the catalog name and schema name of your Peaka Catalog. Then enter trino to the User name field and select Use Secure Connection checkbox. Your form should look like the screenshot below after you enter correct values:
![](https://cdn.peaka.com/bi-tools/metabase/metabase-4.png)
- Scroll down to bottom and click Show advanced options button. Check Optimize prepared statements checkbox.
Enter your Peaka API Key to Additional JDBC connection string options in the following format extraCredentials=peakaKey:
<Your Key>
. After that check Rerun queries for simple explorations and Periodically refingerprint tables check boxes. Your form should look like the screenshot below after you enter correct values:
![](https://cdn.peaka.com/bi-tools/metabase/metabase-5.png)
- If everything is entered correctly you should be able to see Peaka under databases list like the screenshot below.
![](https://cdn.peaka.com/bi-tools/metabase/metabase-6.png)
- Go to Metabase Home page and click Browse Data button from the toolbar from the left and select your Peaka connection. You should be able to see your tables here. In our case we are seeing tables under catalog stripe and schema name payment.
![](https://cdn.peaka.com/bi-tools/metabase/metabase-7.png)
Click the table you want to see data and if you can see the data successfully like the screenshot below, you have successfully completed Peaka connection to your Metabase cloud account.
![](https://cdn.peaka.com/bi-tools/metabase/metabase-8.png)
Metabase On-Premise Setup
If you are using Metabase On-Prem or Open Source Edition, follow these steps to install the Starburst driver:
- Download the latest release of the Peaka Driver .jar file.
- Copy the JAR file into the
/plugins/
directory of your Metabase installation. If you aren’t sure where to find the plugins directory, review the Metabase driver installation guide - Restart Metabase.
- After here follow the same steps as explained in the Metabase Cloud Setup part of this documentation. Only change is Peaka Connector requires different connection parameters than the Startburst. When you enter the Add Database form you will need to. Select Peaka for Database Type. Then give a name to your database connection. For the host name enter dbc.peaka.host. For the port enter 4567. As for the Catalog Name and Schema Name enter the catalog name and schema name of your Peaka Catalog. Your form should look like the screenshot below after you enter correct values:
![](https://cdn.peaka.com/bi-tools/metabase/metabase-9.png)
Then click Save button and follow the same steps as explained in Metabase Cloud Setup Documentation.