Plugins 〉Cube
Cube
Cube Datasource Plugin for Grafana
Experimental: This plugin is experimental. Features may be incomplete or have known limitations, and you should expect some rough edges. See Experimental Status for details.
Connect Grafana to Cube for semantic layer analytics. Query measures and dimensions, apply filters, and visualize your data—without writing SQL.

Why Use This Plugin?
This plugin brings a true semantic layer to Grafana for the first time. By connecting to Cube, you get:
- No more writing SQL — Query your data using pre-defined measures and dimensions
- No more writing JOINs — Cube handles the complexity of joining tables for you
- Single source of truth — Business metrics are defined once in Cube and used consistently across all dashboards
- Lower barrier to entry — Non-technical users can build dashboards without SQL knowledge
- Scalable complexity — Start simple, but analytics queries can grow as sophisticated as you need
- More maintainable dashboards — Panels require far less code when using semantic definitions
- Cross-panel filtering — Use AdHoc filters to drill down across Table and Bar Chart panels, enabling data exploration for dashboard viewers
Features
Query Builder
The visual query builder supports:
| Feature | Description |
|---|---|
| Dimensions | Select one or more dimensions to group your data |
| Measures | Select one or more measures to aggregate |
| Limit | Control the number of rows returned (defaults to 10,000; maximum 50,000). See Cube's row limit documentation for details. |
| Filters | Filter your query before aggregation |
| Order | Sort results by any selected dimension or measure |
Filtering
Per-panel filters support:
- Filter members: Dimensions only (measure filtering not yet supported)
- Operators:
equalsandnotEquals, each accepting multiple values - Multiple filters: Combine with AND (intersection)
Dashboard Variables
AdHoc Filters
Clicking a value in a Table or Bar Chart panel creates or updates an AdHoc dashboard variable scoped to the Cube datasource. This enables powerful cross-panel filtering and data exploration.
AdHoc filters can also be edited directly in the dashboard UI to add additional filter members, operators, and values. The same operator limitations apply (= and != only).
How filters combine:
- Multiple AdHoc filters combine with AND (intersection)
- AdHoc filters combine with per-panel filters using AND (intersection)
Time Range Filtering
To filter all panels by the dashboard time picker:
- Create a dashboard variable with identifier
cubeTimeDimension - Set its value to the time dimension field you want to filter by (e.g.,
order_date) - The dashboard's
$__fromand$__tovariables will automatically apply to all panels
Requirements
- Grafana 12.1.0 or later
- A running Cube instance (self-hosted*)
*See Known Limitations regarding using Cube Cloud.
Getting Started
- Install the plugin from the Grafana plugin catalog
- Go to Connections → Data sources → Add data source
- Search for "Cube" and select it
- Configure the connection:
- URL: Your Cube REST API endpoint (e.g.,
http://localhost:4000) - Deployment Type: Select your Cube deployment type (self-hosted or self-hosted-dev)*
- API Secret: Your Cube API secret (if authentication is enabled)
- SQL Datasource: Select the SQL datasource to open when clicking "Edit SQL in Explore"
- URL: Your Cube REST API endpoint (e.g.,
- Click Save & test to verify the connection
*See Known Limitations regarding using Cube Cloud.
Known Limitations
This plugin is experimental. Current limitations include:
| Limitation | Details |
|---|---|
| Cube Cloud authentication | Authentication does not yet work with Cube Cloud. Self-hosted Cube (dev and production mode) works correctly. |
| Technical field names | Dimension and measure names currently use full technical identifiers (e.g., orders.customer_name) rather than human-readable labels. This is due to a dependency on how Grafana implements AdHoc filters. |
| Filter operators | Currently only equals and notEquals are supported |
| Filter members | Only dimensions can be used as filter members (no measure filtering) |
| Cross-panel filtering | Depends on Grafana AdHoc filters. Currently works with Table and Bar Chart panels only |
Experimental Status
This plugin is marked as experimental, meaning:
- Features may be incomplete or have known limitations
- Backward compatibility is not guaranteed between versions
- The data model, configuration, or UI might change, potentially breaking dashboards
- The plugin is primarily intended for testing, evaluation, and early feedback
Recommendations:
- Use in development or test environments before deploying to production
- Test thoroughly, including upgrade paths
- Avoid building hard production dependencies unless you're comfortable refactoring later
- Track the changelog for breaking changes
Documentation
Contributing
We welcome contributions and feedback! Please open issues or pull requests on the GitHub repository.
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Installing Cube on Grafana Cloud:
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Warning
Plugin installation from this page will be removed in February 2026. Use the Plugin Catalog in your Grafana instance instead. Refer to Install a plugin in the Grafana documentation for more information.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Warning
Plugin installation from this page will be removed in February 2026. Use the Plugin Catalog in your Grafana instance instead. Refer to Install a plugin in the Grafana documentation for more information.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Warning
Plugin installation from this page will be removed in February 2026. Use the Plugin Catalog in your Grafana instance instead. Refer to Install a plugin in the Grafana documentation for more information.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Warning
Plugin installation from this page will be removed in February 2026. Use the Plugin Catalog in your Grafana instance instead. Refer to Install a plugin in the Grafana documentation for more information.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Warning
Plugin installation from this page will be removed in February 2026. Use the Plugin Catalog in your Grafana instance instead. Refer to Install a plugin in the Grafana documentation for more information.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Warning
Plugin installation from this page will be removed in February 2026. Use the Plugin Catalog in your Grafana instance instead. Refer to Install a plugin in the Grafana documentation for more information.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
For more information, visit the docs on plugin installation.
Installing on a local Grafana:
For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.
1. Install the Data Source
Use the grafana-cli tool to install Cube from the commandline:
grafana-cli plugins install The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.
Alternatively, you can manually download the .zip file for your architecture below and unpack it into your grafana plugins directory.
Alternatively, you can manually download the .zip file and unpack it into your grafana plugins directory.
2. Configure the Data Source
Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.
Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.
To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.
Changelog
0.1.0 (2026-01-27)
Initial public release.
Features
- Query Builder: Visual interface for building Cube queries with dimensions, measures, and filters
- Order By: Configurable sorting for query results
- SQL Preview: View the generated SQL before executing queries
- Multi-value Filters: Filter operators support multiple values with intuitive multi-select UI
- Time-series Support: Compatible with Grafana time-series panels and time range filtering
- AdHoc Filters: Support for Grafana's ad-hoc filter variables
Notes
This is an experimental data source plugin. Breaking changes may occur in minor version updates until v1.0.0.




