Redash
Overview
Redash is a business intelligence and analytics platform. Learn more in the official Redash documentation.
The DataHub integration for Redash covers BI entities such as dashboards, charts, datasets, and related ownership context. Depending on module capabilities, it can also capture features such as lineage, usage, profiling, ownership, tags, and stateful deletion detection.
Concept Mapping
While the specific concept mapping is still pending, this shows the generic concept mapping in DataHub.
| Source Concept | DataHub Concept | Notes |
|---|---|---|
| Platform/account/project scope | Platform Instance, Container | Organizes assets within the platform context. |
| Core technical asset (for example table/view/topic/file) | Dataset | Primary ingested technical asset. |
| Schema fields / columns | SchemaField | Included when schema extraction is supported. |
| Ownership and collaboration principals | CorpUser, CorpGroup | Emitted by modules that support ownership and identity metadata. |
| Dependencies and processing relationships | Lineage edges | Available when lineage extraction is supported and enabled. |
Module redash
Important Capabilities
| Capability | Status | Notes |
|---|---|---|
| Detect Deleted Entities | ✅ | Enabled by default via stateful ingestion. |
| Table-Level Lineage | ✅ | Enabled by default. |
Overview
The redash module ingests metadata from Redash into DataHub. It is intended for production ingestion workflows and module-specific capabilities are documented below.
Prerequisites
Before running ingestion, ensure network connectivity to the source, valid authentication credentials, and read permissions for metadata APIs required by this module.
Install the Plugin
pip install 'acryl-datahub[redash]'
Starter Recipe
Check out the following recipe to get started with ingestion! See below for full configuration options.
For general pointers on writing and running a recipe, see our main recipe guide.
source:
type: "redash"
config:
connect_uri: http://localhost:5000/
api_key: REDASH_API_KEY
# Optionals
# api_page_limit: 1 #default: None, no limit on ingested dashboards and charts API pagination
# skip_draft: true #default: true, only ingest published dashboards and charts
# dashboard_patterns:
# deny:
# - ^denied dashboard.*
# allow:
# - .*allowed dashboard.*
# chart_patterns:
# deny:
# - ^denied chart.*
# allow:
# - .*allowed chart.*
# parse_table_names_from_sql: false
Config Details
- Options
- Schema
Note that a . is used to denote nested fields in the YAML recipe.
| Field | Description |
|---|---|
api_key string(password) | Redash user API key. Default: ********** |
api_page_limit integer | Limit on number of pages queried for ingesting dashboards and charts API during pagination. Default: 9223372036854775807 |
connect_uri string | Redash base URL. Default: http://localhost:5000 |
page_size integer | Limit on number of items to be queried at once. Default: 25 |
parallelism integer | Parallelism to use while processing. Default: 1 |
parse_table_names_from_sql boolean | See note below. Default: False |
skip_draft boolean | Only ingest published dashboards and charts. Default: True |
env string | Environment to use in namespace when constructing URNs. Default: PROD |
chart_patterns AllowDenyPattern | A class to store allow deny regexes |
chart_patterns.ignoreCase One of boolean, null | Whether to ignore case sensitivity during pattern matching. Default: True |
chart_patterns.allow array | List of regex patterns to include in ingestion Default: ['.*'] |
chart_patterns.allow.string string | |
chart_patterns.deny array | List of regex patterns to exclude from ingestion. Default: [] |
chart_patterns.deny.string string | |
dashboard_patterns AllowDenyPattern | A class to store allow deny regexes |
dashboard_patterns.ignoreCase One of boolean, null | Whether to ignore case sensitivity during pattern matching. Default: True |
dashboard_patterns.allow array | List of regex patterns to include in ingestion Default: ['.*'] |
dashboard_patterns.allow.string string | |
dashboard_patterns.deny array | List of regex patterns to exclude from ingestion. Default: [] |
dashboard_patterns.deny.string string | |
stateful_ingestion One of StatefulIngestionConfig, null | Stateful Ingestion Config Default: None |
stateful_ingestion.enabled boolean | Whether or not to enable stateful ingest. Default: True if a pipeline_name is set and either a datahub-rest sink or datahub_api is specified, otherwise False Default: False |
The JSONSchema for this configuration is inlined below.
{
"$defs": {
"AllowDenyPattern": {
"additionalProperties": false,
"description": "A class to store allow deny regexes",
"properties": {
"allow": {
"default": [
".*"
],
"description": "List of regex patterns to include in ingestion",
"items": {
"type": "string"
},
"title": "Allow",
"type": "array"
},
"deny": {
"default": [],
"description": "List of regex patterns to exclude from ingestion.",
"items": {
"type": "string"
},
"title": "Deny",
"type": "array"
},
"ignoreCase": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": true,
"description": "Whether to ignore case sensitivity during pattern matching.",
"title": "Ignorecase"
}
},
"title": "AllowDenyPattern",
"type": "object"
},
"StatefulIngestionConfig": {
"additionalProperties": false,
"description": "Basic Stateful Ingestion Specific Configuration for any source.",
"properties": {
"enabled": {
"default": false,
"description": "Whether or not to enable stateful ingest. Default: True if a pipeline_name is set and either a datahub-rest sink or `datahub_api` is specified, otherwise False",
"title": "Enabled",
"type": "boolean"
}
},
"title": "StatefulIngestionConfig",
"type": "object"
}
},
"properties": {
"stateful_ingestion": {
"anyOf": [
{
"$ref": "#/$defs/StatefulIngestionConfig"
},
{
"type": "null"
}
],
"default": null,
"description": "Stateful Ingestion Config"
},
"connect_uri": {
"default": "http://localhost:5000",
"description": "Redash base URL.",
"title": "Connect Uri",
"type": "string"
},
"api_key": {
"default": "**********",
"description": "Redash user API key.",
"format": "password",
"title": "Api Key",
"type": "string",
"writeOnly": true
},
"dashboard_patterns": {
"$ref": "#/$defs/AllowDenyPattern",
"default": {
"allow": [
".*"
],
"deny": [],
"ignoreCase": true
},
"description": "regex patterns for dashboards to filter for ingestion."
},
"chart_patterns": {
"$ref": "#/$defs/AllowDenyPattern",
"default": {
"allow": [
".*"
],
"deny": [],
"ignoreCase": true
},
"description": "regex patterns for charts to filter for ingestion."
},
"skip_draft": {
"default": true,
"description": "Only ingest published dashboards and charts.",
"title": "Skip Draft",
"type": "boolean"
},
"page_size": {
"default": 25,
"description": "Limit on number of items to be queried at once.",
"title": "Page Size",
"type": "integer"
},
"api_page_limit": {
"default": 9223372036854775807,
"description": "Limit on number of pages queried for ingesting dashboards and charts API during pagination.",
"title": "Api Page Limit",
"type": "integer"
},
"parallelism": {
"default": 1,
"description": "Parallelism to use while processing.",
"title": "Parallelism",
"type": "integer"
},
"parse_table_names_from_sql": {
"default": false,
"description": "See note below.",
"title": "Parse Table Names From Sql",
"type": "boolean"
},
"env": {
"default": "PROD",
"description": "Environment to use in namespace when constructing URNs.",
"title": "Env",
"type": "string"
}
},
"title": "RedashConfig",
"type": "object"
}
Capabilities
Use the Important Capabilities table above as the source of truth for supported features and whether additional configuration is required.
Chart lineage
The integration can use an SQL parser to try to parse the tables the chart depends on. This parsing is disabled by default,
but can be enabled by setting parse_table_names_from_sql: true. The parser is based on the sqlglot package.
Limitations
Module behavior is constrained by source APIs, permissions, and metadata exposed by the platform. Refer to capability notes for unsupported or conditional features.
Troubleshooting
If ingestion fails, validate credentials, permissions, connectivity, and scope filters first. Then review ingestion logs for source-specific errors and adjust configuration accordingly.
Code Coordinates
- Class Name:
datahub.ingestion.source.redash.RedashSource - Browse on GitHub
If you've got any questions on configuring ingestion for Redash, feel free to ping us on our Slack.
This page is auto-generated from the underlying source code. To make changes, please edit the relevant source files in the metadata-ingestion directory.
Tip: For quick typo fixes or documentation updates, you can click the ✏️ Edit icon directly in the GitHub UI to open a Pull Request. For larger changes and PR naming conventions, please refer to our Contributing Guide.