DEV Community

Cover image for Build INTERACTIVE Analytics Dashboards | METABASE. Part2: Connecting to Database
Ramy Gamal
Ramy Gamal

Posted on

1 1

Build INTERACTIVE Analytics Dashboards | METABASE. Part2: Connecting to Database

After submitting your profile information you will need to provide database connection so metabase can process your data.

Metabase supports wide range of databases including:

In this tutorial we will use MongoDB sample database as our data source.

Connecting to MongoDB

We will need to get database connection string. So in your ATLAS dashboard press on Connect, then get the connection string.

Getting Mongo Connection String

You will have a connection string similar to this one

mongodb+srv://DB_USER:*******@cluster0.4i388.mongodb.net/sample_analytics?retryWrites=true&w=majority
Enter fullscreen mode Exit fullscreen mode

So copy it and replace the placeholders and then provide the connection string to metabase.
Submitting connection string to metabase

Important Note

Make sure to whitelist all the IPs in your ATLAS configuration so metabase can access it.
image

Now the database is added as a data source in metabase and automatically metabase started generating some charts for you.
image

It was pretty easy right? In the next post we will discuss how to create custom charts in metabase.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay