marmotdata/superset
Discover dashboards, charts, datasets and database connections from Apache Superset
The Superset plugin discovers dashboards, charts, datasets and database connections from Apache Superset through its REST API.
Dashboards contain their charts, datasets feed the charts that read them, and a dataset is linked to the table it reads in the database Superset connects to, using the identity that database's own Marmot plugin gives the table. Virtual datasets are linked to the tables named after FROM and JOIN in their SQL.
Required Permissions
Log in with a user that can read dashboards, charts, datasets and databases. The built-in Gamma role is enough for dashboards, charts and datasets; reading database connection details (GET /api/v1/database/{id}/connection) needs can_read on Database, which Alpha and Admin have.
Table lineage
A dataset is linked to a table only for backends Marmot has a naming rule for: PostgreSQL, MySQL, MariaDB, BigQuery, ClickHouse, SQLite, DuckDB, Athena (as Glue), Snowflake, Redshift, SQL Server, CockroachDB, Oracle, Druid, Trino and Databricks. The edge appears in Marmot once that database has been ingested with its own plugin.
Naming
Dashboards, charts and databases are named by their titles, and a dataset by its schema and table, for example mrn://asset/data-model-object/superset/public.orders. Set zone when you catalogue more than one Superset.
Tables a dataset reads belong to the database's own plugin, so they use its name, such as <database>.<schema>.<table> for PostgreSQL. The database connection's host and port are passed on as a hint so Marmot picks the right zone.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Apache Superset from the plugin list.
- Fill in the settings, set a schedule and save.
With the CLI
Save a YAML config, then run marmot ingest.
Not using plugins? Other ways to populate Marmot
Configuration
Fields marked Required must be set.
tagsList of textTags to apply to discovered assets
external_linksList of groupsExternal links to show on all assets
nameTextDisplay name for the link
iconTextIcon identifier for the link
urlTextURL to the external resource
filterGroup of settingsFilter discovered assets by name (regex)
includeList of textInclude patterns for resource names (regex)
excludeList of textExclude patterns for resource names (regex)
zoneTextTells this system apart from others of the same technology and becomes part of every asset's MRN
hostText RequiredSuperset URL (e.g. https://superset.example.com)
usernameText RequiredUsername to log in with
passwordSecret RequiredPassword to log in with
providerOne ofAuthentication provider (db or ldap)
verify_sslYes or noVerify the server's TLS certificate
include_chartsYes or noDiscover charts
include_datasetsYes or noDiscover datasets
include_databasesYes or noDiscover database connections
include_draftYes or noInclude unpublished (draft) dashboards
discover_lineageYes or noLink dashboards, charts, datasets and the tables they read
page_sizeNumberObjects per API page
Assets emitted
Metadata this plugin attaches to each discovered asset.
Dashboard
The metadata fields the plugin emits for Dashboard assets.
Chart
The metadata fields the plugin emits for Chart assets.
Dataset
The metadata fields the plugin emits for Data Model Object assets (Superset datasets).
Column
The per-column fields embedded in a dataset asset's schema.
Database
The metadata fields the plugin emits for DataSource assets (Superset database connections).