marmotdata/nifi
Discover process groups, processors and data flow lineage from Apache NiFi
The NiFi plugin discovers process groups and processors from Apache NiFi through its REST API. Each process group becomes a Pipeline, each processor a Task, and the connections between them become lineage. Well-known processors are also linked to the S3 and GCS buckets, Azure Blob containers, Kafka topics, database tables and Elasticsearch indexes they read or write.
Authentication
Single-user and LDAP installs take username and password; the plugin exchanges them for a bearer token. An existing bearer token goes in token. Installs secured with client certificates take client_cert and client_key. NiFi ships with a self-signed certificate, so verify_ssl: false is needed unless the certificate is trusted or ca_cert points at its CA.
The user needs view the user interface and read access to the process groups to discover, plus read access to controller services for table lineage through connection pools.
Run history
NiFi records provenance events, not runs, so the plugin emits no run history.
Naming
A Pipeline is named after its process group and a Task after its processor, and their MRNs carry the whole path from the root group, for example mrn://asset/task/nifi/nifi-flow.ingest.generate-orders. Set zone when you catalogue more than one NiFi, for example mrn://asset/pipeline/nifi@prod/nifi-flow.
Tables, topics and buckets are named the way their own plugins name them, for example <database>.<schema>.<table> for PostgreSQL. The JDBC URL of a connection pool and the bootstrap servers of a Kafka processor give the edge a host hint so Marmot can pick the right zone.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Apache NiFi 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 RequiredNiFi base URL (e.g. https://nifi.example.com:8443)
usernameTextUsername for single-user or LDAP login. Leave all credentials empty for an unsecured HTTP install
passwordSecretPassword for the username
tokenSecretBearer token to use instead of a username and password
client_certTextPath to a PEM client certificate for mutual TLS (used instead of a login)
client_keyTextPath to the PEM private key of the client certificate
ca_certTextPath to a PEM CA certificate to trust
verify_sslYes or noVerify the NiFi TLS certificate. Set to false for the self-signed certificate NiFi ships with
include_processorsYes or noDiscover processors as Task assets
include_portsYes or noDiscover input and output ports as Task assets
discover_lineageYes or noLink well-known processors to the buckets, topics, tables and indexes they read or write
root_process_groupTextId of the process group to start from (defaults to the root group)
Assets emitted
Metadata this plugin attaches to each discovered asset.
Pipeline
The metadata fields the NiFi plugin emits for process group (Pipeline) assets.
Task
The metadata fields emitted for processor (Task) assets.
Port
The extra metadata emitted for input and output ports when include_ports is on. Ports are Task assets and share id, group_id, pipeline, state, comments and url with processors.
Topic
The metadata emitted for the Kafka Topic assets created from PublishKafka and ConsumeKafka processors.