Skip to main content
Focus: Get up and running with Metric Store by creating your first project, accessing Cube Playground, and querying your first cubes. This guide will walk you through creating your first Cube project and getting started with the Metric Store in just a few minutes.

Prerequisites

Before you begin, ensure you have:
  • Access to the 5X Platform
  • Semantic Layer permissions
  • An environment configured in your workspace

Step 1: Navigate to Metric Store

  1. Go to Metric Store page
    • Navigate to /metrics-store in your browser
    • Or click “Metric Store” from the navigation menu
  2. View the interface
    • If you have no projects, you’ll see a “Create project” button
    • If projects exist, use the project dropdown in the header and select “New project”

Step 2: Create your first project

Project details

Fill in the project creation form: Project name
  • Choose a unique, descriptive name (max 50 characters)
  • Example: My First Cube Project
Repository type
  • Platform managed (recommended for beginners) - 5X-managed Git repository
  • Imported - Connect an existing GitHub repository
Environment
  • Select your environment from the dropdown
  • Choose the environment where your data warehouse is configured
Deployment option
  • Always on - Service runs continuously (recommended for production)
  • On demand - Service starts when needed
  • Scheduled - Time-based scheduling

Add project

Click “Add Project” and wait for project creation:
  • Repository cloning will begin automatically (if imported)
  • Project initialization takes a few seconds
  • You’ll be automatically taken to the project workspace
Platform managed repositoriesFor beginners, we recommend starting with Platform Managed repositories. 5X handles all Git repository management, making setup easier and faster.

Step 3: Access Cube Playground

Once your project is created:
  1. Cube Playground loads automatically in the main workspace area
  2. Wait for heartbeat to reach “RUNNING” status (green indicator)
  3. Start exploring your cubes and data
The Cube Playground is an interactive interface where you can:
  • Build queries visually using the query builder
  • Write SQL queries directly
  • Explore available cubes, measures, and dimensions
  • Test queries before deploying
Heartbeat statusThe Cube Playground requires the heartbeat status to be “RUNNING” before it can fully load. If you see a loading state, wait for the green indicator, or check the deployment options if it remains in “PENDING” status.

Step 4: Get API credentials

To connect BI tools or applications to your cubes:
  1. Click “API Credentials” button in the header
  2. View SQL API credentials:
    • Copy the connection string
    • Use in BI tools or SQL clients
    • Credentials include host, port, database, username, and password
  3. Switch to REST API tab for REST API credentials:
    • Base URL and authentication token
    • Use for RESTful API access
Credentials availabilityAPI credentials are only available when:
  • A project is selected
  • A branch is selected
  • Server heartbeat status is “RUNNING”

Step 5: Create your first cube

In the Cube Playground, you can define cubes using YAML or JavaScript. Here’s a simple example:
cubes:
  - name: orders
    sql_table: orders
    measures:
      - name: count
        type: count
      - name: total_revenue
        sql: sum(amount)
        type: sum
    dimensions:
      - name: status
        sql: status
        type: string
      - name: created_at
        sql: created_at
        type: time
Key components:
  • Measures - Quantitative metrics (counts, sums, averages)
  • Dimensions - Attributes for analysis (status, date, category)
  • Time dimensions - Special dimensions for time-based analysis
Save your cube definition and deploy it to make it available for querying.

Step 6: Query your data

Using SQL API

Connect a SQL client or BI tool using the SQL API credentials:
SELECT 
  orders.status,
  orders.total_revenue
FROM orders
GROUP BY orders.status

Using REST API

Use the REST API credentials to query data programmatically:
curl -X POST 'https://your-api-url/v1/load' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -d '{
    "query": {
      "measures": ["orders.total_revenue"],
      "dimensions": ["orders.status"]
    }
  }'

Using Cube Playground

Build queries visually in the Cube Playground:
  1. Select your cube from the sidebar
  2. Choose measures and dimensions
  3. Apply filters if needed
  4. Click “Run” to execute the query
  5. View results in the query results panel

Common tasks

Switch between projects

  1. Click the project name in the header
  2. Select a project from the dropdown
  3. Wait for the project to load and Cube Playground to refresh

Sync latest changes

  1. Click “Sync now” button in the header
  2. Wait for sync to complete
  3. Changes from your Git repository will be reflected automatically

Work with branches

  1. Click the branch name in the header
  2. Select a branch from the dropdown or create a new one
  3. Each branch has its own cube definitions and can be developed independently

Add BI integration

  1. Click “BI Integration” button
  2. Click “New BI Connection”
  3. Select your BI tool
  4. Configure connection settings
  5. Sync to activate the connection

Next steps

Now that you have your first project set up:

Tips for success

  • Start with Platform Managed repositories for easier setup
  • Use Always On deployment for production environments
  • Protect main branch in project settings for production work
  • Sync regularly to keep data up-to-date with repository changes
  • Document your cubes with descriptions and examples for team members
  • Test queries in Playground before deploying to production