marmotdata/redash
Discover dashboards, charts, queries and data sources from Redash
The Redash plugin discovers dashboards, charts, queries and data sources from a Redash instance.
It reads the REST API with a user API key, sent as Authorization: Key <api_key>. The key is found on the Redash user profile page.
Assets
| Redash object | Marmot type | Name |
|---|---|---|
| Dashboard | Dashboard | dashboard name |
| Visualization widget | Chart | <dashboard name>/<visualization name> |
| Saved query | Data Model Object | query name |
| Data source | DataSource | data source name |
Redash allows two dashboards or two queries to share a name. A repeat gets its Redash id appended, for example Revenue (2).
Lineage
Dashboard CONTAINS Chart, Data Model Object FEEDS Chart, and DataSource FEEDS Data Model Object.
Table references are read out of each query's SQL and linked as Table FEEDS Data Model Object. The table MRN is built with the provider and naming rule of the plugin that owns the queried system, so the edge lands on that plugin's asset rather than creating a second one. A data source type with no known Marmot identity produces no table edge.
Table lineage rides on the Data Model Object assets, so it needs include_queries.
Redash versions
The dashboard URL changed in Redash 10, so the plugin reads the version from /api/session and picks the matching form. A Redash that does not report its version is treated as current.
Archived dashboards are never returned by the Redash API, so include_archived only affects queries.
Naming
Table MRNs follow the owning plugin's naming, for example mrn://asset/table/postgresql/shop.public.orders for PostgreSQL and <project>.<dataset>.<table> for BigQuery. The data source's host and port are passed on as a hint so Marmot picks the zone that owns that server. Set zone when you catalogue more than one Redash; it becomes part of the MRN of every Redash asset.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Redash 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 RequiredRedash base URL, for example https://redash.example.com
api_keySecret RequiredRedash user API key, found on the user profile page
verify_sslYes or noWhether to verify the server TLS certificate
include_queriesYes or noWhether to catalogue saved queries
include_data_sourcesYes or noWhether to catalogue data sources
include_archivedYes or noWhether to include archived dashboards and queries
include_draftsYes or noWhether to include unpublished dashboards and queries
discover_lineageYes or noWhether to link dashboards, charts, queries and the tables they read
page_sizeNumberResults to request per API page
Assets emitted
Metadata this plugin attaches to each discovered asset.
Dashboard
The metadata on a Dashboard asset.
Chart
The metadata on a Chart asset.
Query
The metadata on a Data Model Object asset, which is how a saved Redash query is catalogued.
Data Source
The metadata on a DataSource asset. The connection options are copied through an allowlist, so a password is never recorded even when the API returns one.