Back to Materialize

Metabase

doc/user/content/serve-results/bi-tools/metabase.md

1231.8 KB
Original Source

You can use Metabase to create real-time dashboards based on the data maintained in Materialize.

Database connection details

To set up a connection from Metabase to Materialize, use the native PostgreSQL database driver with the following parameters:

FieldValue
Database typePostgreSQL
HostMaterialize host name.
Port6875
Database namematerialize
Database usernameMaterialize user.
Database passwordApp-specific password.
SSL modeRequire

For more details and troubleshooting, check the Metabase documentation.

Configure a custom cluster

{{% include-from-yaml data="examples/alter_cluster" name="configure-cluster" %}}

Refresh rate

By default, the lowest refresh rate for Metabase dashboards is 1 minute. You can manually set this to a lower interval by adding #refresh=1 (as an example, for a 1 second interval) to the end of the URL, and opening the modified URL in a new tab.

Because Metabase queries are simply reading data out of self-updating views in Materialize, setting your dashboards to auto-refresh at lower rates should not have a significant impact on database performance. To minimize this impact, we recommend carefully choosing an indexing strategy for any objects serving results to Metabase.