marmotdata/nats
Discover JetStream streams from NATS servers
The NATS plugin discovers JetStream streams from NATS servers. It connects using the NATS client protocol and enumerates streams via the JetStream API, collecting configuration and runtime state for each stream.
Requirements
- JetStream must be enabled on the NATS server (start with
-jsflag or configure innats-server.conf). Core NATS subjects are ephemeral and not discoverable as persistent assets. - The connecting user needs permission to access the JetStream API (
$JS.API.>).
Authentication
The plugin supports several authentication methods:
- Token: Set the
tokenfield for token-based auth. - Username/Password: Set
usernameandpasswordfields. - Credentials file: Set
credentials_fileto the path of a.credsfile (NKey-based auth). - TLS: Enable
tlsfor encrypted connections. Usetls_insecureto skip certificate verification in development.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick NATS 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 RequiredNATS server hostname or IP address
portNumberNATS server port
tokenSecretAuthentication token
usernameTextUsername for authentication
passwordSecretPassword for authentication
credentials_fileTextPath to NATS credentials file (.creds)
tlsYes or noEnable TLS connection
tls_insecureYes or noSkip TLS certificate verification
Assets emitted
Metadata this plugin attaches to each discovered asset.
Stream
NATSStreamFields defines metadata fields for NATS JetStream streams