Cube is the analytics engine used by CrewAI. It provides cost tracking, execution analytics, and provider usage metrics.Documentation Index
Fetch the complete documentation index at: https://enterprise-docs.crewai.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before enabling Cube, ensure the following:- Wharf must be enabled: Wharf is enabled by default. If you disabled it with
wharf.enabled: false, re-enable it for Cube to work. See Wharf OTLP Trace Collector. - Object storage (recommended for production): Cubestore needs persistent storage. See Storage below.
Database
With internal PostgreSQL (postgres.enabled: true):
The Helm chart automatically creates and configures the Cube database during installation. No manual steps required.
With external PostgreSQL (postgres.enabled: false):
You must manually create the Cube database before enabling. The database name should match cube.database (default: cube).
postgres_fdw extension. On most managed PostgreSQL services (AWS RDS, Google Cloud SQL, Azure) this extension is available by default. If your database administrator has restricted extension creation, they may need to run the following on the Cube database:
Storage
Cube automatically detects and reuses the storage backend already configured for your installation (STORAGE_SERVICE). No additional storage configuration is needed — Cube stores its data under a cubestore/ prefix in the same bucket or container.
STORAGE_SERVICE | Detected backend |
|---|---|
amazon | AWS S3 |
google | Google Cloud Storage |
microsoft | Azure Blob Storage |
cube.cubestore.storage.type explicitly to "s3", "gcs", or "azure".
Local PVC (Evaluation Only)
To force local PVC storage instead of auto-detection:Configuration
Enable or disable Cube.Values:
true- Deploy Cube (enables analytics)false- Disable Cube (default)
Database name used by the Cube service.Default:
"cube"Must match: When using external PostgreSQL, the database with this name must exist and be accessible by the application user.Image
Container registry hosting the Cube image.Default:
"" (empty) - Automatically uses global.imageRegistry valueCube container image name.
Cube version to deploy.
Image pull policy.
Scaling
Number of Cube API replicas.
Resources
Resource limits and requests for the Cube API pod.Defaults:
Resource limits and requests for the background worker pod.Defaults:
Cubestore
Cubestore version.
Storage backend override. When empty (default), auto-detected from
STORAGE_SERVICE.Values:""- Auto-detect fromSTORAGE_SERVICE(recommended)"s3"- Force AWS S3"gcs"- Force Google Cloud Storage"azure"- Force Azure Blob Storage"local"- Force local PVC storage
Path prefix within the storage bucket. Must NOT start with
/ — a leading slash causes S3 list-after-write failures.Default: "cubestore"Enable PVC-based local storage. Only used when
storage.type is empty. See the storage warning above.PVC storage size.
Number of Cubestore worker replicas.Default:
2 — Matches SaaS baseline. Increase for high query volume.Resource limits and requests for the Cubestore router.Defaults:
Resource limits and requests for each Cubestore worker.Defaults:
Node Placement
Node selector labels for Cube pod placement.Default:
{} (no node restrictions)