# Time-Series Data Analysis and Visualization with GreptimeDB and Metabase

Source: https://greptime.com/blogs/2024-09-19-metabase-integration

In today's data-driven world, organizations are flooded with time-series data, but making sense of this information to drive real business insights can be challenging. That's where powerful business intelligence (BI) tools like Metabase come in.

[Metabase](https://metabase.com) is a powerful, open-source business intelligence and analytics tool that empowers organizations to explore and visualize their data with ease. It offers a user-friendly interface for creating interactive dashboards, charts, and reports without requiring extensive technical knowledge.

By pairing GreptimeDB with Metabase, users can effortlessly visualize, query, and analyze their time-series data, making it easier to understand system performance, user behavior, and trends.

Thanks to the SQL based interface and compatibility with Postgres wire protocol, we are able to create a Metabase driver for GreptimeDB with little effort. This driver allows you to add GreptimeDB as a database in Metabase, and create queries and visualizations.

<figure>
<img src="/blogs/2024-09-19-metabase-integration/1.png" alt="Metabase Dashboard" style="width: 80%; margin: 0 auto">
<figcaption>Metabase Dashboard</figcaption>
</figure>


## How to Connect GreptimeDB with Metabase

### Download the Plugin

To install the plugin, you can download the packaged jar file from [the release page](https://github.com/GreptimeTeam/greptimedb-metabase-driver/releases).

### Install the Plugin

When you finish downloading the plgin, place it in plugins/ directory of your metabase workspace. 

### Configure GreptimeDB in Metabase

From the admin settings or setup guide, you will be able to select GreptimeDB from Database type and access the connection information. This driver works for both self-managed GreptimeDB and fully managed instances from [GreptimeCloud](https://greptime.cloud).

You can find more information from [our docs](https://docs.greptime.com/nightly/user-guide/integrations/metabase) about the connection details.

<figure>
<img src="/blogs/2024-09-19-metabase-integration/2.png" alt="Select GreptimeDB as Database Type in Metabase" style="width: 100%; margin: 0 auto">
<figcaption>Select GreptimeDB as Database Type in Metabase</figcaption>
</figure>

Once you add the database, Metabase will scan and cache table information from it.

<figure>
<img src="/blogs/2024-09-19-metabase-integration/3.png" alt="Metabase, Extract Table Info from GreptimeDB" style="width: 100%; margin: 0 auto">
<figcaption>Extract Table Info from GreptimeDB</figcaption>
</figure>

## Query Data from GreptimeDB Tables

Then you are ready to create queries from these tables.

<figure>
<img src="/blogs/2024-09-19-metabase-integration/4.png" alt="Metabase Query Table using SQL" style="width: 100%; margin: 0 auto">
<figcaption>Query Table using SQL</figcaption>
</figure>


<figure>
<img src="/blogs/2024-09-19-metabase-integration/5.png" alt="GreptimeDB Data Visitualization in Metabase" style="width: 100%; margin: 0 auto">
<figcaption>Data Visitualization in Metabase</figcaption>
</figure>

This driver plugin is also open sourced and [available from github](https://github.com/GreptimeTeam/greptimedb-metabase-driver).


If you are new to Metabase, we have a Metabase docker image that includes our plugin by default:

```bash
docker pull greptime/metabase-greptimedb:latest
docker run -p 3000:3000 greptime/metabase-greptimedb:latest
```

This integration allows users to fully leverage the capabilities of GreptimeDB for real-time time-series data analysis. With Metabase’s user-friendly dashboards and GreptimeDB’s high-performance storage, you can seamlessly monitor system trends and optimize business operations without needing in-depth technical expertise.


We are excited to see how you utilize GreptimeDB and Metabase to supercharge your data insights. Whether you're visualizing system metrics or tracking user activity, this integration opens up new possibilities. 

At Greptime, we are dedicated to building a strong ecosystem around time-series data storage and analysis. We welcome your feedback on new integrations that can further enrich the value of our solutions. 


----
#### About Greptime

Greptime offers industry-leading time series database products and solutions to empower IoT and Observability scenarios, enabling enterprises to uncover valuable insights from their data with less time, complexity, and cost.

[GreptimeDB](https://github.com/GreptimeTeam/greptimedb) is an open-source, high-performance time-series database offering unified storage and analysis for metrics, logs, and events. Try it out instantly with [GreptimeCloud](https://www.greptime.com/product/cloud), a fully-managed DBaaS solution—no deployment needed!

The [Edge-Cloud Integrated Solution](https://greptime.com/product/carcloud) combines multimodal edge databases with cloud-based GreptimeDB to optimize IoT edge scenarios, cutting costs while boosting data performance.

Star us on [GitHub](https://github.com/GreptimeTeam/greptimedb) or join GreptimeDB Community on [Slack](https://www.greptime.com/slack) to get connected.
