marmotdata/doris
Discover databases, tables, views and materialized views from Apache Doris clusters
The Doris plugin discovers databases, tables, views and async materialized views from Apache Doris clusters. It reads the table model, partitioning, distribution and column aggregation types from the DDL, and emits row counts, data sizes, view lineage and foreign key relationships.
It connects to a frontend over the MySQL protocol (port 9030 by default) with github.com/go-sql-driver/mysql.
Required Permissions
The user needs to read the catalog and the definitions of views:
CREATE USER 'marmot_reader'@'%' IDENTIFIED BY 'your-password';
GRANT SELECT_PRIV, SHOW_VIEW_PRIV ON internal.*.* TO 'marmot_reader'@'%';
SHOW_VIEW_PRIV is what lets SHOW CREATE VIEW run; without it views are catalogued without their query or lineage.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Apache Doris 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 RequiredDoris frontend hostname or IP address
portNumberDoris frontend MySQL protocol port
userText RequiredUsername for authentication
passwordSecretPassword for authentication
databasesList of textDatabases to discover (every database except exclude_databases when empty)
exclude_databasesList of textDatabases to skip when databases is empty
catalogTextDoris catalog to discover
tlsOne ofTLS configuration (false, true, skip-verify, preferred)
include_columnsYes or noWhether to include column information in table metadata
include_viewsYes or noWhether to discover views
include_materialized_viewsYes or noWhether to discover async materialized views
include_statisticsYes or noWhether to include row counts, data sizes and column counts
Assets emitted
Metadata this plugin attaches to each discovered asset.
Apache Doris
The metadata fields the Doris plugin emits for database, table and view assets.
Column
The per-column fields embedded in an asset's schema.