Open edX Superset dashboards for course teams

Aspects dashboards in Apache Superset give course teams and analysts learner reporting on infrastructure you control. This page covers what they show, how access is granted, and how to add custom charts without breaking upgrades.

On this page

What Open edX Superset dashboards give course teams

Course teams and analytics leads who need learner progress and engagement reporting without sending learner data to a third party can use Aspects, which presents tracking data from a ClickHouse database in Apache Superset dashboards. The dashboards run on infrastructure you control, so the reports stay inside your own environment. Superset is an Apache Software Foundation project released under the Apache License 2.0, and it has no paid edition, so the software itself carries no license fee for your team to plan around.

The pipeline works in stages. The event-routing-backends plugin captures tracking logs from the Open edX platform and converts them into xAPI statements. Those statements are stored in ClickHouse through either Ralph or Vector, and Superset reads from ClickHouse to draw the charts and dashboards that instructors and analysts open. Each stage is a separate component you must install, size, secure and keep upgraded, so a team choosing Aspects is committing to operating a small analytics stack, not only a set of charts. Confirm with your Aspects documentation which pipeline option your release expects before you plan hosting.

Choose this route when course teams need reports on engagement and progress across many courses, and when you want those reports governed by the same access model as the rest of your analytics. Simpler reporting inside the LMS may be enough for a single course with a few learners. If you also need the same events in a system of your own, such as a learning record store, plan that forwarding alongside Aspects from the start, because it changes what data leaves the platform.

How tracking events reach a Superset dashboard

The path starts in the LMS, where the event-routing-backends plugin turns tracking logs into xAPI statements. Those statements pass through Ralph or Vector into a ClickHouse database inside the analytics stack, which Superset queries to draw the dashboards course teams see. The trust boundary sits between the LMS servers and the analytics stack, so check what crosses it, which fields are identifying, and who holds Superset access.

Tracking events flow from the LMS across a boundary into Superset dashboards.

Who uses which dashboards and what they need

Instructors use course-level reporting to see how learners engage with their own course content. Their questions are practical: which units learners open, where they stop, which problems are answered incorrectly most often, and whether discussion activity is growing or falling. They rarely need to identify individual learners, and Aspects is designed to keep learners pseudonymous by default, so instructor views should work with aggregated or pseudonymous data.

  • Question set: Where learners drop off, which graded items are hard, and how weekly activity changes across a run.
  • Detail level: Course and unit aggregates, with learners shown as pseudonymous identifiers rather than names.
  • Access: Read-only access limited to dashboards for their own course keys, granted through the role mapping your identity provider supplies.
  • Edge case: An instructor who also teaches a second course should see only the second course's data when both are in the same Superset instance.
  • Limit: Confirm with your Aspects version which dashboards and filters are shipped for the course team role before promising a view.

Check that each instructor's access was tested with a non-admin account before the course team is onboarded.

Configuration choices and when each fits

This table compares the main Superset configuration decisions for course team dashboards: instance sharing, role mapping, metadata database and background components. Read each row as a choice you make before go-live, with the operating cost and risk it adds. The main takeaway is that role mapping and the metadata database are hard to change later, so settle them in staging first.

DecisionOptionTrade-offWhen it fits
Instance sharingShared Superset instance with Aspects dashboards and other analyticsLowest operating cost, but role and dashboard permissions must be kept tight so course teams see only their coursesSmall or mid-sized platforms with one analytics team and a clear access model
Instance sharingSeparate Superset instance for course teamsStronger isolation and separate upgrade cadence, but a second stack to patch, back up and monitorOrganizations where course data governance or upgrade timing differs from the central analytics team
Role mappingAUTH_ROLES_MAPPING from LDAP or OAuth groupsAccess follows the identity provider, so group changes must be reviewed and tested for each course teamOrganizations that already manage instructor and staff groups in an identity provider
Role mappingRoles assigned manually inside SupersetSimple to start, but offboarding and course reassignment depend on someone remembering to update accountsPilots with few instructors and a short, documented approval process
Metadata databasePostgreSQL (supported 10 to 17)Well-tested with Superset, with backup and upgrade work your database team must ownProduction instances where the team already runs PostgreSQL backups and high availability
Metadata databaseMySQL (supported 5.7 and 8.x)Supported by Superset, but confirm your Aspects and Superset versions match your MySQL versionSites where MySQL is the standard database service and the team has tested upgrades
Metadata databaseSQLite default from quickstart or PyPI installsNot recommended for production, so it only fits a throwaway evaluation environmentLocal trials that will be rebuilt and never hold instructor dashboards
Caching and workersCaching layer plus Celery worker and beatNeeded for alerts, scheduled reports, async queries and thumbnails, with Redis and Celery to run and monitorCourse teams that want scheduled reports or alerts on learner completion data
Caching and workersWeb application only, no caching or workersFewer moving parts, but alerts, reports and async queries are unavailableRead-only dashboards viewed directly by a small group of analysts

How to set up Superset access for course teams

This sequence takes Superset from a bare install to a state where course teams sign in through your identity provider and see only the course data they are permitted to see. Each step closes with a check, so the access model is verified before instructors rely on it.

  1. Provision the metadata database and secret key

    The platform engineering team creates a PostgreSQL or MySQL database for Superset's metadata, since the SQLite default and the Docker Compose PostgreSQL container are not recommended for production. They set a SECRET_KEY in the configuration before first start, because Superset requires a user-specified key to start (a requirement added in version 2.1.0). Confirm the database version against the supported range in the configuration documentation, which lists PostgreSQL 10 to 17 and MySQL 5.7 and 8.x. Done means Superset starts, completes its database initialization, and the metadata database holds its tables.

  2. Connect Superset to the Aspects ClickHouse data

    Add the ClickHouse database that Aspects populates as a Superset database connection, using a read-only account dedicated to Superset rather than the account that writes learner events. Confirm with your Aspects deployment which schemas and tables hold the course reporting data your instructors need, and restrict the account to those. Done means a test query from the Superset SQL Lab returns rows for a known course, and the same query fails under the read-only account when you attempt a write.

  3. Map identity provider groups to Superset roles

    Configure single sign-on through Flask-AppBuilder, using an OAuth2 provider such as Google or Azure, or LDAP, and map groups from your identity provider to Superset roles with AUTH_ROLES_MAPPING. Keep the mapping in the configuration file under version control so that changes to who gets access are reviewed like other code. Confirm the group claim name and group identifiers with your identity provider administrator before you rely on them. Done means a test user in the course-team group signs in and Superset shows the role assigned by the mapping.

  4. Create course-scoped roles and data access rules

    Define one role per course team or program, and grant each role access to the dashboards, charts and datasets for its own courses only. Confirm how the Aspects datasets filter by course before you assume row-level separation, and add row-level security filters where the data does not separate courses by itself. Keep the number of shared admin roles small and document who owns each role. Done means a user in one course team's role cannot open another course's dashboard, chart or dataset from the Superset interface.

  5. Enable caching and workers for reports and alerts

    Skip this step if instructors only need interactive dashboards. If scheduled reports, alerts, async queries or dashboard thumbnails are required, add a caching layer and Celery worker and beat processes, since the architecture documentation states these features depend on them and most installations use Redis and Celery. Confirm the report recipients and delivery method with the course team, because a scheduled report sends data outside the dashboard's access checks. Done means a scheduled report runs on a test schedule, the worker logs show it completed, and the recipient list contains only approved addresses.

  6. Verify access as a non-admin course user

    Sign in as a test instructor from each course-team role, without admin rights, and check what each account can see, export and query through SQL Lab. Compare the results with the access matrix agreed with the course leads and record any gap as a defect to fix before go-live. Repeat this check after each configuration change and after each Superset upgrade, since the upgrade process includes checking breaking changes in UPDATING.md. Done means every test account sees only its permitted courses, and the signed record of the check is filed with the access model.

How access is granted to instructors and analysts

The access decision for Superset starts with identity. Superset is built on Flask-AppBuilder, which handles its users, roles and permissions, and it can authenticate people through OAuth2 providers such as Google or Azure, through custom OAuth2 servers that use the code flow, or through LDAP. Pick the source of truth that already knows who is a course team member, usually your corporate identity provider, and confirm that the group claims it sends are stable enough to drive roles. Then map those groups to Superset roles with AUTH_ROLES_MAPPING in superset_config.py. Keep the mapping small and written down, because every group that reaches a role is a permission someone must later review.

The harder decision is what each role may see. Superset roles control which dashboards, charts and datasets a user can open, but the course team question is usually who may see learner-level data for which courses. Decide this before building dashboards: will instructors see only their own course's dashboards, will analysts see all courses in a program, and is any role allowed to see identifiable learners at all. Whether Aspects datasets can be filtered per course for each user is something to confirm against the Superset and Aspects versions you plan to run, since this page does not promise course-level isolation. Ask the implementation team to demonstrate it in staging with a test instructor account from each group before any real course data is loaded.

Treat the mapping and role design as an access control artifact. Record which groups map to which roles, who approves changes, and how someone is removed when they leave a course team. Test the result with accounts that should be refused as well as accounts that should succeed, and repeat that test after each Superset upgrade, because permission behavior is part of what the upgrade process must preserve.

Security and operational considerations for shared dashboards

Superset dashboards for course teams sit between the learner data in ClickHouse and the people who read it, so the same few decisions shape both security and day-to-day operations. The cards cover the secret that signs sessions, the personal fields that can reach a dashboard, the metadata database that holds every chart and role, the network path to ClickHouse, the audit trail for role changes, and keeping analytics load off the LMS.

Plan SECRET_KEY handling and rotation

Superset will not start without a user-specified SECRET_KEY, so the key must be generated, stored in your secrets manager and injected at deploy time, never committed to the configuration file. Rotation is the harder part. Set PREVIOUS_SECRET_KEY to the old value when you introduce the new one so existing sessions and encrypted values keep working during the change, then remove it once the transition is complete. Test this on staging first, because a wrong value after a restart can lock every course team out at once.

Superset configuration docs

Decide who sees personal learner fields

Aspects reports are pseudonymous by default, but plugins that add identification change what a dashboard can display. Before granting access, list which fields reach each dataset and which roles can query raw tables in SQL Lab. Instructors usually need course-level aggregates, while analysts may need row-level detail for support work. Confirm with your privacy office which group may see identifiable data, and keep that group small and documented.

Back up the metadata database

The metadata database stores dashboards, charts, datasets, users and role assignments, and it is the one part of Superset that is hard to rebuild from code. Use PostgreSQL or MySQL in production, as the architecture documentation recommends, and schedule backups with tested restores. Take a backup before every upgrade, since the upgrade steps run schema migrations. Ask your team how long restores take in practice, because that figure determines how long course teams would lose dashboard access in an incident.

Upgrade guide

Restrict network access to ClickHouse

Superset queries ClickHouse directly, so the database should accept connections only from the Superset workers and the administrators who maintain it. Use a dedicated read-only database user for Superset, limit it to the Aspects tables it needs, and place ClickHouse on a private network segment with no public endpoint. Keep the connection string out of dashboard owners' reach, since anyone who can edit a database connection can point it elsewhere. Verify these rules with a connection test from outside the allowed segment.

Audit role and permission changes

Role changes are the most common way dashboard access drifts. When you map LDAP or OAuth groups to Superset roles with AUTH_ROLES_MAPPING, a change in the identity provider can grant access without anyone reviewing it in Superset. Record who changed the mapping, who approved it and when, and review the list of users with analyst or admin roles on a fixed schedule. Confirm with your identity team how group changes are logged on their side and whether those logs can be matched to Superset accounts.

Keep analytics off the LMS servers

Superset and its query load should run on their own hosts, separate from the LMS and Studio servers that serve learners. Heavy dashboard queries on the LMS would slow course delivery during exams and enrollment peaks. Plan separate workers for alerts, reports and async queries, which the architecture documentation says need the caching layer and worker components. Ask your team to confirm which hosts, databases and credentials the analytics stack uses, and that none of them are shared with the learning platform.

Questions course teams and analysts ask before hiring help

What drives the cost of a Superset setup for course teams?

The cost depends mostly on how many data sources, dashboards and access groups the work covers, and on how much of the Aspects stack already runs. Most of the fee goes to planning the access model, configuring Superset against the analytics database, building and reviewing the dashboards with course teams, and testing them in staging. Ongoing costs are infrastructure you run yourself, such as the metadata database, the caching layer and any Celery workers that alerts, reports and async queries need. Ask any quote to list each dashboard, each role mapping and each environment separately so you can see what is one-time and what recurs.

How long does a Superset dashboard project take?

Duration is set by the number of dashboards, the number of access groups, and whether the Aspects data already loads cleanly into ClickHouse. A project that reuses the standard Aspects dashboards and adds one role mapping is much shorter than one that designs new course-level charts for many teams. Time is also lost waiting on identity provider changes, staging access and reviews by instructors who need to confirm that the numbers mean what they expect. Ask for a timeline that separates access setup, dashboard build, review and cutover, and names who must respond at each step.

What does the work need from our team?

You will need read access to the analytics database that Aspects populates, administrative rights or a named contact on your identity provider, and a staging environment that mirrors production. Superset must have a user-specified SECRET_KEY before it starts, and the metadata database should be PostgreSQL or MySQL rather than the SQLite default, so your infrastructure team should be ready to provision them. Course team leads also need to name the people who will review dashboards and confirm which learner data they may see. Confirm these items before the project starts, because missing access is the most common cause of delay.

Can our internal team set up Superset dashboards alone?

Yes, if your team already runs Flask-based applications, manages a relational database and understands Open edX event data. Superset is licensed under Apache-2.0 with no paid edition, so the software itself carries no license fee. The harder parts are the access model, which maps identity groups to Superset roles through AUTH_ROLES_MAPPING, and the upgrade routine, which requires a metadata database backup and a staging test before each release. If nobody on the team has run these steps before, budget time to learn them, or use a partner for the first build and then take over operations. A written scope makes it clear which parts you can own from the start.

How are custom charts kept working across Superset upgrades?

Custom charts survive upgrades when they are stored in version control, use only documented Superset and Aspects data interfaces, and are tested in staging before production. Before each upgrade, check UPDATING.md for breaking changes between versions, back up the metadata database, then run superset db upgrade and superset init. Avoid editing charts directly in the production interface because those changes are hard to track and reapply. Keep a list of every custom chart with its query, its data source and the version it was last verified against, so a reviewer can rerun the checks after each release.

What does ongoing support look like after the dashboards go live?

Ongoing support covers keeping Superset patched and upgraded, watching the metadata database and caching layer, reviewing new dashboard requests, and re-checking custom charts after each change in Aspects or Superset. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, and the scope of any retainer is agreed in writing. Ask for a clear list of what the retainer includes, how requests are prioritized, how upgrades are staged, and who answers when a dashboard stops loading. Ask whether support covers the ClickHouse layer as well, since that is a separate system with its own sizing and backup needs.

Does the setup expose learner personal data to course teams?

It depends on how Aspects and your identity setup are configured, and the answer should be confirmed before any dashboard is shared. Aspects does not identify learners by default, and plugins that add identification change what a dashboard can show. Access in Superset is granted through roles mapped from OAuth or LDAP groups, so only the groups you map can see a given dashboard. Ask your team to list which roles may see which data and to review that list with your privacy or compliance lead before go-live. DeployOpen prepares the systems and evidence for compliance assessments, but it does not issue audit reports or certifications.

How DeployOpen scopes and supports Superset dashboards

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including Open edX analytics. For course team dashboards, we scope the Aspects and Superset work in writing, build it in your environment, and hand over the access model, custom charts and runbooks your team needs to keep it running.

How we scope

  • We agree the dashboards, course teams, roles and data sources in writing before any build begins.
  • The written scope names which Aspects dashboards are configured and which custom charts are included.
  • Engagements are fixed-scope, with deliverables and timelines agreed up front and a quote following from that scope.
  • We confirm which Superset and Aspects versions your Open edX release supports before choosing dashboard work.

How we build

  • We configure Superset roles and group mapping so instructors see only the courses they own.
  • Custom charts are built as versioned, separately maintained assets so they do not depend on core file edits.
  • We test access rules with sample instructor, analyst and admin accounts in a staging environment first.
  • Metadata database, caching and worker settings are set to the configuration your deployment requires.

How we hand over

  • You receive documented dashboard definitions, role mappings, custom chart code and the configuration changes made.
  • A runbook covers the upgrade steps, including metadata database backup and checking breaking changes before each Superset upgrade.
  • We walk your platform and analytics staff through granting access and adding a new course team to a dashboard.
  • Test results and a list of open items are delivered with the handover so your team can review them.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover Superset version upgrades and re-testing of custom charts against each new release.
  • Access reviews of role mappings can be scheduled so course team permissions stay aligned with current staff.
  • Ask for the support scope, response expectations and upgrade responsibilities in writing before you sign.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.