marmotdata/cassandra
Discover keyspaces, tables and materialized views from Apache Cassandra clusters
The Cassandra plugin discovers keyspaces, tables and materialized views from Apache Cassandra clusters. It reads the system_schema tables over CQL with the pure-Go gocql driver, so it works with Cassandra 3.0 and later and needs no cgo.
Tables and views are identified in their MRN by keyspace.table, the same identity the OpenMetadata plugin projects for a Cassandra service, so the two routes land on one asset. Set zone to a short name such as prod-eu when you run two servers of the same kind, and it becomes part of every MRN. The name is one you choose, not a cloud availability zone.
Required Permissions
The user needs to read the schema tables, plus the keyspaces it should preview sample data from:
CREATE ROLE marmot_reader WITH PASSWORD = 'your-password' AND LOGIN = true;
GRANT SELECT ON KEYSPACE system_schema TO marmot_reader;
GRANT SELECT ON KEYSPACE your_keyspace TO marmot_reader;
Statistics
Column and index counts are reported per table. A row count is not: Cassandra keeps no row estimate and COUNT(*) is a full cluster scan.
Known Gaps
DataStax Astra secure connect bundles are not supported. Connect with hosts and ssl instead.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Apache Cassandra 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
hostsList of text RequiredContact points, as host or host:port
portNumberPort for contact points given without one
usernameTextUsername for password authentication
passwordSecretPassword for password authentication
datacenterTextLocal datacenter; only its nodes are queried when set
sslYes or noConnect over TLS
ssl_ca_certTextPath to the CA certificate that signed the server certificate
ssl_skip_verifyYes or noSkip verification of the server certificate
connect_timeout_secondsNumberSeconds to wait for a connection
keyspacesList of textKeyspaces to discover; all non-system keyspaces when empty
exclude_system_keyspacesYes or noWhether to skip Cassandra's own keyspaces (system, system_schema, system_auth, ...)
include_columnsYes or noWhether to include column information in table metadata
include_viewsYes or noWhether to include materialized views
include_indexesYes or noWhether to include secondary index information
include_statisticsYes or noWhether to include column and index counts
Assets emitted
Metadata this plugin attaches to each discovered asset.
Keyspace
The metadata fields the Cassandra plugin emits for keyspace assets.
Table
The metadata fields emitted for table and materialized view assets.
Column
The per-column fields embedded in an asset's schema.