NATS JetStream check
nats — NATS JetStream
Cluster health from /varz and /jsz — meta-leader present, offline or lagging peers, ghost peers, mixed versions.
checkfleet check nats --config checkfleet.yml
Preflight/health of a NATS JetStream cluster, read from each node’s HTTP
monitoring port (/varz and /jsz?meta=1) — the read-only endpoints only, it
never mutates the cluster. It encodes the operational signals from the ops
runbook:
- Reachability + version per node (
OKwithserver_name, version, conns, uptime;ERRORif the monitoring port doesn’t answer). - Mixed versions across the cluster →
WARN(e.g. mid-upgrade skew). - Meta-leader:
BADif no meta-leader is elected (quorum lost),WARNif the elected leader disagrees across nodes, or if it isn’t theexpect_meta_leaderyou configured. - Peer health (from the meta raft group):
BADif a peer isOFFLINE,WARNifnot current. - Peer lag:
WARN/BADwhen a peer’s raft lag crosseslag_warn/lag_crit. - Ghost / missing peers: with
expect_peersset, an unexpected member is aWARN(ghost), an expected member absent from the cluster isBAD.
See Configuration → checks.nats.
See the full module reference for every check, or configuration for the config keys.