Checks
Insights runs over 140 automated checks against every system it indexes, on every epoch. Operational checks evaluate the health and operational state of your NATS deployment at that epoch; optimization checks evaluate a trailing window ending at it (six hours by default) to surface waste, imbalance, and slow trends. Each check produces findings with a severity level and remediation guidance, giving operators actionable information rather than raw metrics.
For the full catalogue of checks (codes, severities, thresholds, and remediation), see the Checks Reference.
How checks work
When an epoch commits, Insights evaluates every check against that system's data, using that system's thresholds, and stores the results in hx.check_findings in the same transaction as the epoch. A check examines specific entities (servers, streams, consumers, accounts, connections, leaf nodes, users, services, or the system as a whole) and produces a finding when it detects a condition that warrants attention. A row in hx.check_findings is an entity that tripped a check: there are no rows for entities that passed.
Each finding includes:
- Severity: how urgent the condition is
- Affected entity: the specific server, stream, consumer, or other entity involved
- Description: what was detected
- Remediation: guidance on how to investigate and resolve the issue
Findings appear on entity detail pages and in the entity tables of the web UI, and the System page grades each category by the share of entities that pass its checks. insights checks findings <code> evaluates one check on demand over a requested time range.
Check codes
Every check is identified by a lowercase, hyphenated code: the entity the finding is actionable at, then a number. For example, server-003 (High CPU Usage) or stream-002 (Stream Replica Lag). The prefixes are server, stream, consumer, account, connection, leafnode, user, service, and system.
Codes are stable identifiers, not a dense sequence: a retired code is never reused, so gaps are expected. The same spelling is used everywhere a check is named: check-thresholds and disabled-checks in configuration, notification subscriptions and ignore patterns, the finding feed subject, the Alertmanager alertname, and hx.check_findings.code. Run insights checks list for the current set and insights checks info <code> for one check's parameters.
Finding lifecycle
A finding is identified by its check code and entity. After each epoch, a findings tracker for each system compares that epoch's findings with the previous epoch's and reports each change as a transition:
| Status | Meaning |
|---|---|
firing | The finding is present now and was absent in the previous epoch |
changed | The finding is still present, at a different severity; the transition carries the severity it left |
resolved | The finding was present in the previous epoch and is absent now |
Severity is not part of a finding's identity, so a check that escalates reports changed rather than a resolve followed by a new fire. Every transition carries starts_at, the first epoch of the finding's current unbroken run, which is derived from the stored history and so survives a restart; a resolve also carries ends_at.
Transitions are published on $INS.sys.<id>.feed.finding.<status>.<severity>.<code>, so a subscriber filters on the subject rather than on the payload:
nats sub '$INS.sys.prod.feed.finding.firing.critical.>'
nats sub '$INS.sys.prod.feed.finding.*.*.stream-002'
The same transitions drive webhook and Alertmanager delivery. See the Notifications guide for endpoint configuration.
Severity levels
| Severity | Meaning |
|---|---|
| Critical | Immediate attention required. The system is experiencing or is about to experience an outage, data loss, or significant degradation. |
| Warning | Action should be taken soon. The condition may lead to problems if left unaddressed, or it indicates a configuration that does not follow best practices. |
| Info | Informational finding. No immediate action is required, but the condition is worth noting for optimization or awareness. |
Most checks have a fixed severity. A few compute it from the measurement, such as server-063 (Meta Snapshot Slow), which is a warning or critical depending on how long the snapshot took.
Check categories
Checks are organized into six categories, each addressing a distinct operational concern. Every check belongs to exactly one category.
Health & availability
Is the system up and reachable?
These checks monitor the fundamental operational state of the NATS deployment. They detect offline stream and consumer replicas, lost stream, consumer, and meta quorum, leaderless Raft groups, route and gateway disconnections, a JetStream subsystem that is not ready or cannot write to its store, servers that stopped answering monitoring requests, and services that are down. They also flag underutilized servers and inactive accounts and streams that may indicate decommissioned infrastructure.
Performance & latency
Is the system fast enough?
These checks evaluate latency and throughput across the system. They detect high CPU usage, slow consumers, elevated round-trip times on routes, gateways, leaf nodes, and client connections, JetStream API and meta pressure, slow meta snapshots, Raft apply lag, pending message buildup, and suboptimal placement of stream leaders relative to their consumers' clients.