Set up serverless 'BI' reporting
Overview
This how-to guide walks through the steps to implement serverless metrics and Business Intelligence (BI) by using Hydra’s analytics tables. Serverless analytics capabilities enable scalable and cost effective Business Intelligence reporting that do not compete for provisioned database resources.
Key Features
- Analytics tables: Analytics tables use a columnstore format by default, optimized for read-heavy, complex analytical queries and generating reports.
- Serverless processing: Compute resources scale automatically based on query demand, eliminating server resource contention
- High Performance: Analytics tables enables efficient data compression and faster query execution for aggregations and joins with rowstore tables.
Set up steps
Create a project
Connect a reporting tool
Create dashboards and visualizations
1. Create a project
Navigate to the Hydra platform to create project: enter a project name, choose and plan, and modify hardware specs in the “scaling and storage” dropdown - then select the “Create Project” button at the bottom of the page.
- Connect a reporting tool
There are many good options for metrics and reporting tools, such as Metabase, Tableau, PowerBI, and more. In this how-to example, we will use Metabase: it’s open source, has a visual query builder, and it’s a fairly user-friendly option for creating interactive dashboards. These instructions will work with any reporting tool with a standard Postgres connector.
- Select a reporting tool with a PostgreSQL support connector or integration.
- Configure to connect to Hydra. Navigate to the ‘Credentials’ section in Hydra’s ‘Dashboard’ tab. In the drop down menu, select ‘env’ to retreive the host, port, database name, and credentials.
- Host: Database endpoint. Look like ‘PGHOST=hy-009d8…’
- Port: 5432
- Database: Name of the target database.
- Credentials: Username and password
Copy these credential paste them into t reporting tools’ integration UI. Then, test the connection to ensure the BI tool can query Hydra’s analytics tables.
3. Build metrics and dashboards
- Reading directly from Hydra’s analytics tables for fast query performance on large datasets.
- Create visualizations (e.g., revenue trends, regional sales) using the reporting tool’s interface. Here are Metabase’s simple guide and video on how to simply create interactive dashboards and visualizations.
Idea: create an analytics table in Hydra with your largest tables, such as the user event’s table. Data in an analytics table is automatically compressed. When queries are executed they are done by efficient serverless processes.
Ideal tables for reporting and metrics
- Sales transactions table
- Event logs
- Financial transaction tables
- IoT sensor telemetry
- Customer Behavior
Table Examples:
analytics.sales_transaction
analytics.event_logs
analytics.financial_transaction
analytics.iot_sensor
analytics.customer_behavior