ClickHouse Cloud logo
5-minute setup

Connect ClickHouse Cloud to StackSpend

Track ClickHouse Cloud usage costs beside AWS, GCP, Azure, Vercel, Snowflake, and AI providers. StackSpend imports daily ClickHouse Credits and splits them by compute, storage, backup, data transfer, and ClickPipes load costs where available.

StackSpend connects to ClickHouse Cloud using the ClickHouse Cloud REST API usage cost endpoint. It imports daily organization billing data in ClickHouse Credits and displays ClickHouse Cloud spend alongside cloud and AI cost providers.

Billing Read Access Required

Use a ClickHouse Cloud API key that can view organization billing usage. StackSpend only reads billing and usage-cost data; it does not modify ClickHouse services, warehouses, users, or payment settings.

Prerequisites

  • A ClickHouse Cloud organization with usage-cost data available.
  • Permission to create or use a ClickHouse Cloud API key.
  • Organization billing read access, such as view billing usage permission.
  • Access to StackSpend with permission to add provider connections.
Step 1

Create a ClickHouse Cloud API key

  1. Open the ClickHouse Cloud Console and select the organization you want to monitor.
  2. Go to Organization Settings and open API Keys.
  3. Create a new API key named StackSpend or similar.
  4. Assign a role or custom permission set that can view organization billing usage.
ClickHouse Cloud API key documentation
Step 2

Copy the credentials

  1. Copy the API Key ID.
  2. Copy the API Key Secret immediately. ClickHouse only shows the secret once.
  3. If your key can access multiple organizations, copy the Organization ID from organization settings.
Step 3

Add ClickHouse Cloud in StackSpend

  1. Open StackSpend and go to Dashboard -> Providers.
  2. Select ClickHouse Cloud and name the connection.
  3. Paste the API Key ID and API Key Secret.
  4. Enter Organization ID if needed, or leave it blank for auto-detection.
  5. Click Test Connection. If it passes, save and run a sync.

What StackSpend Tracks

Daily usage costs

Daily per-entity usage-cost records from the ClickHouse Cloud usageCost API.

ClickHouse Credits

ClickHouse reports usage in CHC. ClickHouse defines 1 CHC as 1 USD of usage value.

Cost dimensions

Compute, storage, backup, data transfer, initial load, and remainder costs when the API provides those metrics.

Entities

Data warehouses, services, ClickPipes, entity names, and locked/unlocked billing record state.

Troubleshooting

401 unauthorized

Create a new ClickHouse Cloud API key and confirm the Key ID and Key Secret were copied correctly.

403 forbidden

Confirm the API key has organization billing read access, then test the connection again.

Organization ID not found

Leave Organization ID blank for auto-detection, or copy the exact ID from ClickHouse Cloud organization settings.

No costs after sync

Confirm the selected date range has ClickHouse Cloud usage. Recent unlocked records can change on later syncs.

Official Documentation

Bring ClickHouse Cloud into your daily cost signal.

Connect ClickHouse Cloud with read-only API access, sync usage costs, and review spend beside cloud and AI providers before the invoice lands.

14-day free trial. No credit card required. Plans from $19/month.