Aspects Learner Analytics integrates several open-source tools to add powerful analytics and reporting capabilities to the Open edX platform. This plugin enables seamless installation, configuration, and deployment of these tools via Tutor. The tools integrated by Aspects are:
- ClickHouse: A fast and scalable analytics database.
- Apache Superset: A data visualization and exploration platform.
- OpenFUN Ralph: A Learning Record Store that validates and stores xAPI statements in ClickHouse.
- Vector: A tool for forwarding logs and xAPI data to ClickHouse.
- Event-Routing-Backends: An Open edX plugin that transforms tracking logs into xAPI and forwards them to Learning Record Stores in near real-time.
- dbt: A SQL-based data pipeline builder, utilizing the aspects-dbt project.
For more information, refer to the Aspects architecture documentation.
- Streamlined deployment of analytics and reporting tools.
- Integration with Open edX for real-time and historical data analytics.
- Extensible architecture supporting customization.
The plugin is compatible with Tutor 15.0.0 and later and supports Open edX releases from Nutmeg onward.
Aspects is implemented as a Tutor plugin. For now, the easiest installation method is via Tutor. Follow these steps for a tutor local
installation:
Install Tutor: Follow the instructions at Tutor Installation Guide.
Create an Admin User: Refer to the Tutor Setup Guide.
Install and Enable the Plugin:
pip install tutor-contrib-aspects tutor plugins enable aspects tutor config save
Rebuild Docker Images:
tutor images build openedx --no-cache tutor images build aspects aspects-superset
Initialize the Environment:
tutor local do init
To visualize data:
Generate test data:
tutor local do load-xapi-test-data
Import a demo course and create real data:
Follow these steps.
Interact with the course to generate data:
Complete a few activities within the course (e.g., enroll, take quizzes, watch videos) to generate real data. This will provide a more realistic dataset for analytics.
Sync data from an existing Tutor installation with default settings:
tutor local do dump-data-to-clickhouse --options "--object course_overviews" tutor local do transform-tracking-logs --source_provider LOCAL --source_config '{"key": "/openedx/data", "container": "logs", "prefix": "tracking.log"}' --transformer_type xapi
Aspects maintains its Superset assets (dashboards, charts, datasets) in the repository. Local changes to these assets will be overwritten during updates unless saved as new assets.
To rebuild and re-import assets:
tutor images build aspects-superset --no-cache
tutor local do import-assets
Aspects supports Kubernetes autoscaling configurations for Ralph, Superset, and Superset Worker via the Pod Autoscaling plugin. Modify autoscaling settings as needed.
To contribute Superset assets:
Fork this repository and set up a local Tutor instance with Aspects installed.
You should work on the non-localized versions of the Superset dashboards. Export the new or updated dashboard(s) using Superset’s “Export” feature. It is best to export the entire dashboard instead of just charts or datasets to ensure that all of the correct changes are captured.
Use the command:
tutor aspects import_superset_zip ~/Downloads/your_file.zip
Update database connection strings to use template variables.
Validate and rebuild:
tutor images build aspects-superset --no-cache tutor aspects check_superset_assets tutor local do import-assets
Submit a pull request with screenshots and details of your contributions.
Releases are handled by repository maintainers via GitHub Actions:
- Trigger the Bump version and changelog action to update the version and changelog.
- Merge the PR to initiate the release and build-image workflows.
Ensure the updated version appears on PyPI and DockerHub.