Analytics
Analytics dashboards are embedded directly in the Energyworx platform UI so business users can explore their data without leaving Energyworx. They are built in the Analytics dashboard builder (Apache Superset), which Energyworx hosts for your environment. This page explains how to register an Analytics dashboard so it appears in the UI, and how access is controlled.
Analytics dashboards appear in the Analytics menu as namespace-level dashboards, configured through a Dashboard configuration (type Superset).
Prerequisites
- Analytics must be enabled for your environment. This is an environment-level setting configured by Energyworx during deployment — if the Analytics menu is missing, contact Energyworx support to have it enabled.
- You build the dashboard itself in the builder (
https://superset.<env>.energyworx.net); Energyworx only stores a reference to it (the dashboard's embedded UUID) plus access rules.
Getting a dashboard's embedded UUID
Energyworx references a dashboard by its embedded UUID, which is created when you turn on embedding in the builder — it is not the UUID shown in the dashboard's normal URL.
- Open the dashboard in the builder.
- Open the ⋯ (three-dot) menu → Embed dashboard.
- Add the Energyworx UI origin (
https://new.<env>.energyworx.net) as an allowed domain. - Copy the UUID shown in that dialog. This is the value Energyworx needs.
If you skip this step, registration will look fine but the embed will fail to load — Energyworx can only render dashboards that have embedding enabled.
Registering a dashboard (Analytics menu)
Namespace-level dashboards apply to the whole namespace and appear in the Analytics menu.
- Go to Analytics in the main menu and choose Create (requires the create dashboard permission).
- Set the type to Superset and paste the embedded UUID.
- Save. The dashboard now appears in the Analytics menu for users with the read dashboard permission.
Access & isolation
-
Who can see embedded dashboards. Viewing requires the relevant permission (read dashboard). Building or editing dashboard configurations requires the create/update dashboard permission.
-
How tenant isolation works. Energyworx mints a short-lived, per-namespace guest token for every embed. Two things keep that embed inside one namespace:
- Resource restriction. The token is minted for one specific dashboard UUID. A user can only load the dashboards registered for their namespace; the token will not render any other dashboard.
- Per-namespace datasets. A dashboard's charts query that namespace's own BigQuery
dataset (
FROM <project>.<namespace>.…), so they can only return that namespace's rows.
Because isolation comes from the dataset a dashboard is built on, always build a namespace's dashboards against that namespace's own datasets — never register a dashboard whose datasets read another namespace's tables.
-
Dashboard authors. Users who open the builder to build dashboards (interactive login, not an embed) are provisioned a Dashboard Builder role scoped to their own namespace on first sign-in. This governs what authors see in the builder itself; it is separate from the guest-token embed path above.
Tenant onboarding (new namespace)
When a new namespace is created, the builder side requires no manual dashboard wiring:
- The environment already has a shared BigQuery database connection in the builder, so datasets can query the namespace's tables.
- A user's builder role is created automatically the first time someone from that namespace opens the builder to build dashboards. (Embeds isolate via the per-namespace dataset and the dashboard-scoped guest token, as described in Access & isolation.)
To make dashboards appear for the new namespace, register them as described above. See also How to bootstrap a namespace.