JetStream has a /jsz HTTP endpoint and advisories available.
JetStream publishes a number of advisories that can inform operations about the health and the state of the Streams. These advisories are published to normal NATS subjects below
$JS.EVENT.ADVISORY.> and one can store these advisories in JetStream Streams if desired.
nats event --js-advisory can view all these events on your console. The Golang package jsm.go can consume and render these events and have data types for each of these events.
All these events have JSON Schemas that describe them, schemas can be viewed on the CLI using the
nats schema show <schema kind> command.
Stream CRUD operations
Consumer CRUD operations
Snapshot started using
Restore started using
Consumer maximum delivery reached
Message delivery terminated using AckTerm
Message acknowledged in a sampled Consumer
Clustered Stream elected a new leader
Clustered Stream lost quorum
Clustered Consumer elected a new leader
Clustered Consumer lost quorum
The NATS Surveyor system has initial support for passing JetStream metrics to Prometheus, dashboards and more will be added towards final release.