marmotdata/pinot
Discover tables, schemas and stream lineage from Apache Pinot clusters
The Pinot plugin discovers tables from Apache Pinot clusters through the controller REST API. It captures the schema (dimensions, metrics and date-time fields), table settings, segment counts, row counts and sizes, and links realtime tables to the Kafka topic or Kinesis stream they consume.
Connection
controller_url is required. Row counts and sample data run as SQL; they go through the controller's /sql proxy unless broker_url points at a broker directly. Basic auth (username, password) and a bearer token are both supported when the cluster has authentication enabled. Set database to discover one logical database on Pinot 1.1 or later.
Required Permissions
A read-only user with access to the table, schema, segment and query endpoints of the controller is enough:
GET /health
GET /version
GET /tables
GET /tables/{name}
GET /tables/{name}/schema
GET /tables/{name}/size
GET /segments/{name}
GET /schemas/{name}
POST /sql
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Apache Pinot 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
controller_urlText RequiredPinot controller URL, for example http://localhost:9000
broker_urlTextPinot broker URL for queries. When empty, queries go through the controller
usernameTextUsername for basic authentication
passwordSecretPassword for basic authentication
tokenSecretBearer token, used instead of a username and password
databaseTextLogical database to discover (Pinot 1.1 and later). Empty means the default database
verify_sslYes or noWhether to verify the TLS certificate of the controller and broker
include_columnsYes or noWhether to include column information in table metadata
include_row_countsYes or noWhether to count rows with a COUNT(*) query per table
include_sizesYes or noWhether to include the segment size reported by the controller
discover_lineageYes or noWhether to link realtime tables to the Kafka topic or Kinesis stream that feeds them
exclude_system_tablesYes or noWhether to skip tables whose name starts with an underscore
Assets emitted
Metadata this plugin attaches to each discovered asset.
Table
The metadata fields the Pinot plugin emits for table assets.
Column
The per-column fields embedded in an asset's schema.
Stream
The metadata fields emitted on the Kafka topic or Kinesis stream asset that feeds a realtime table.