v1.2.0
One change shapes this release: an Insights node is no longer tied to a single
NATS system. A single process can own several monitored systems, each with its
own database, indexer, scraper, checks and API subtree, and every client (the
CLI, the web UI, the MCP server, the HTTP gateway) says which one it means.
Around that: a DuckDB-free collector build for edge sites, a rewritten
ops backup that builds the file on your machine, a backup viewer, a finding
feed on NATS, grouping and labels across a fleet, one Prometheus endpoint for a
whole deployment, and a long list of query, check and UI work.
Several things change behavior on upgrade. Read
Considerations before you deploy: every check code is
spelled differently, and a config naming an old code or parameter refuses to
start, the flat $INS.* subjects are gone, a data directory now records the
ids it was built under, and ops backup, the HTTP gateway's URLs, stored enum
spellings and the container images' base all changed.
Features
-
One node, several NATS systems: One node can now monitor more than one NATS system at a time. Each system listed under
systems:gets its own DuckDB database (<data-dir>/systems/<id>.db), its own JetStream stream, its own indexer, its own check thresholds and its own API subtree at$INS.sys.<id>.*; nothing is shared or steered between them. A system is either scraped by this node (it has ascrape:block) or fed by a collector elsewhere (a NATS mirror fills its stream and this node only indexes it). A system whose catalog fails to open is degraded rather than fatal: it is logged, kept in the system set and skipped, and its scrape side keeps filling its stream so the epochs index once the catalog is back. The list is YAML-only, and a single-system deployment keeps the flatsystem:/sys:/scraper:/sink:config it has today, resolving to byte-identical values, so nothing needs to change to upgrade.# config.yamlnode:id: central-1 # required once a node serves more than one systemsystems:# Scraped by this node.- id: core-prodscrape:nats:server: nats://core.internal:4222creds: /etc/insights/core-prod.credsinterval: 20sretention: 24h # stream buffer depth; the database keeps historydb:memory-limit: "8GiB" # per-system DuckDB poolmetadata:env: prodregion: us-east-1check-thresholds:server-003:cpu_percent: 80# Fed by an edge collector: the absence of a scrape block is the whole# declaration. This node creates the mirror and asks the collector for the# names, prefix, domain and cadence it actually uses.- id: edge-westretention: 6hThe web UI follows the same model. Every page is path-scoped under
/systems/<id>, each backed by its own querier, time-picker configuration and check parameters, so the URL rather than a stateful selection picks the backend. A node serving one system lands and reads exactly as it did before. A node serving several gets a Systems list, a Nodes inventory discovered over$INS.ping, and, where geo enrichment is configured, a Map page that merges geo data across every system in Go, since separate databases rule out a cross-system join. Systems appear in search results, so the search box is also how you move between them. -
A collector build for edge sites (
insights-collector): A separate binary that scrapes a NATS system and publishes to a stream, with no DuckDB, no web tier, no embedded NATS server and no Prometheus client linked in. It is a fraction of the size of the full binary, ships as aninsights-collectorarchive and a-collectorimage tag, and is meant for places where the scrape has to happen but the indexing does not: a customer site, a leaf location, a different network zone. A full Insights node at a central site mirrors the stream, indexes it, and serves the query API and UI for it. Both halves bind disjoint parts of the same$INS.sys.<id>.*subtree, so clients address subjects and never need to know which process holds what. Give the two distinctnode.idvalues: each defaults to the system id when it serves only that system, and a node whose id is already in use refuses to start.Insights now creates every stream it fills, the central node's mirror included, and asks the collector over
$INS.sys.<id>.ops.sink.infofor the origin stream's name, subject namespace, JetStream domain and scrape cadence. A central node that starts before its collector waits and retries per system instead of guessing from the naming convention. That removes the hand-typed mirror block, which JetStream refuses to edit once a stream exists, so a mirror aimed at the wrong origin, prefix or domain used to stay empty forever with nothing to read. An existing stream is still adopted as-is, with a per-field warning where it disagrees with what the collector reports. Onlymirror-api-prefixsurvives, for an origin reached by a subject mapping or account import rather than a domain.The Federated Deployment guide covers the part operators get wrong: the leafnode bridge, the two JetStream domains, and the cross-domain mirror and permissions that carry scrape data from the site to the central node.
-
Naming a system or node from the CLI: Every client subcommand takes
--system <id>(envINSIGHTS_SYSTEM, orsystem.idin a shared config file), and the process-diagnostic commands take--node <id>for the Insights process itself. With nothing named, the CLI runs one$INS.pingdiscovery round: one answering system is used automatically, and several produce an error listing them.insights system listandinsights node listshow what is reachable.insights system listinsights db query --system core-prod "SELECT count(*) FROM hx.conns"insights ops pprof --node central-1 --type goroutine --debug 2The two long-running gateways serve every system from one process.
insights httptakes the system in the URL path, token for token with the subject it forwards to, so an ingress can route, rate-limit and scope a token per system (GET /systemslists them).insights mcptakes it as a required tool argument, and itssystemstool carries the rule for resolving it: one result is the answer, several means ask. Neither holds routing state, so no request can be answered by a system other than the one it named.curl -X POST http://127.0.0.1:8080/sys/core-prod/db/query \-H 'content-type: application/json' \-d '{"sql":"SELECT name, connections FROM hx.servers LIMIT 5"}' -
Backups you build, and read, on your own machine:
insights ops backup savestreams the database one table at a time over$INS.sys.<id>.db.backup.streamand inserts each Arrow stream into a DuckDB file it creates locally. The server reads and writes nothing, so it no longer needs room for a second copy of the whole database on its own disk before you have anything. The result is a complete database, schema and views and macros included, that opens directly as a--data-dir.The latest epoch is resolved once and every table filtered to it, so tables copied minutes apart stay consistent with each other. Version skew is refused before any bytes move, on column types as well as names, because an
INSERTwould cast a changed column rather than reject it. A retention sweep during a long copy warns and names the epoch below which the tables disagree rather than discarding the backup, since the rows in question are ones the server has just deleted anyway.insights ops backup viewthen opens that file read-only and serves the existing UI over it, so inspecting a backup no longer means hand-written SQL or moving the file into a data directory and starting a server that would migrate your only copy and prune it. Nothing that writes is started. A backup records no scrape interval, so the viewer reads the cadence off the spacing of the file's own epochs, which is what lets its sparklines draw.# Last seven days, prompting for confirmation:insights ops backup save --start 7d --output weekly-backup.db# Non-interactive full backup:insights ops backup save --force --output "insights-$(date +%Y%m%d).db"# Read it back in the UI on http://127.0.0.1:8080:insights ops backup view weekly-backup.db -
Turning a check off:
disabled-checkslists the check codes an operator has decided not to act on, at the top level for every system or inside asystems:entry for one of them. An entry's list is unioned with the top-level list, so it can add codes for its own system but never re-enable one. It is for a check that is structurally true of a topology rather than a symptom of anything, such asaccount-012(High Gateway Traffic Ratio) on one account spanning a supercluster, where no threshold value would make it meaningful.A disabled check keeps running and keeps its history, and it still appears everywhere it otherwise would, marked
disabled, with its real findings. What changes is that it is neither graded nor delivered: the category and overall health percentages and the health-timeline stat cards leave it out on both sides, and nothing it finds becomes an advisory, a webhook or an alert, with no spurious resolve when it is turned off and no re-fire when it is turned back on.insights checks listgains a Disabled column when any check is off, and the findings endpoint marks the rows too, so the CLI table and the MCPchecks_findingstool no longer present them as open issues.disabled-checks:- account-012systems:- id: edge-westdisabled-checks:- stream-025 # added to the top-level list for this system -
Checks that know which servers can answer them: An absent JSON key decodes to its zero value, so a counter a server never sent was stored as though it had been reported as zero.
server-012andserver-013read counters that arrived in nats-server 2.12.0 and could never fire below it, indistinguishable in the UI from a pass;consumer-012reads a field absent before 2.11.0, where the empty string satisfied its predicate and it fired on servers with no policy to set. A version-gated check is now measured against the entities it can actually evaluate, and where that is none, the row dims and names the nats-server release that would enable it. The version lives in the check registry and reaches the SQL as an argument, so the two cannot drift apart. -
A finding feed on NATS: Every state change a check makes is published on
$INS.sys.<id>.feed.finding.<status>.<severity>.<code>, with the status, severity and code in the subject so a subscriber filters server-side rather than receiving everything and discarding most of it. The payload names the entity, carriesstarts_at(when the finding first appeared, not when it last changed) and, on a resolve,ends_at. There is a third transition beyond fired and resolved: a check whose severity moves while it stays up reportschangedwith the severity it left behind, so a subscriber no longer keeps whichever severity it first saw. Severity is deliberately not part of the finding's identity, since putting it there would emit a resolve and a fire on every escalation and tell a receiver the problem went away.nats sub '$INS.sys.core-prod.feed.finding.firing.critical.>'nats sub '$INS.sys.core-prod.feed.finding.*.*.stream-002' -
Alertmanager holds what is still firing: An Alertmanager endpoint receives every standing finding as firing once a minute, each with an
endsAtfour minutes out, alongside transitions as they happen. Alertmanager keeps an alert while it keeps arriving and resolves it on its own when Insights stops sending it. The re-send runs on a wall-clock ticker rather than on scrapes, so a stalled scrape does not let held alerts expire. A severity change resolves the alert at the former severity in the same delivery, so an escalation does not leave a duplicate behind. Webhook endpoints still receive transitions only. -
Notification routing: Endpoint
subscriptionsand a newignorelist take check-code patterns: an exact code, a trailing-*prefix, or*for every code, withignoreapplied after the subscription match so it carves exceptions out of a wildcard. Patterns are validated at startup against the check registry, so one matching no known code fails startup rather than silently delivering nothing, and the endpoint detail card expands each pattern into the concrete checks it resolves to. Asystems:list scopes an endpoint to a subset of the systems a node owns (empty means all of them), and every payload carries asystemlabel per alert and on the group labels, so a receiver can route and group by it.notifications:alertmanager:- name: "Alertmanager"url: "http://localhost:9093/api/v2/alerts"subscriptions:- "*"ignore:- consumer-* # dropped after the wildcard match abovesystems:- core-prod # empty would deliver for every system on this node -
Labels, and grouping a fleet by them:
node.metadataandsystem.metadataare operator-assigned labels reported on$INS.ping. An id says which system, never which kind, so a node discovering thirty of them had no way to say "the prod ones" or "everything in us-east-1". Labels are inert: nothing addresses a subject with them and no behavior keys off them. Metadata for a system is per (node, system), because collector mode splits a system across processes, and the summary unions them and reports the keys they disagree on rather than picking a winner silently.Every list page now runs the search DSL's own parser rather than imitating it, which adds
| by <key>and| sort <attr> [desc]as stages of the filter expression. Grouping puts the aggregate on screen: a group header takes the worst value rather than the mean, since one unreachable system in a group of twenty is the fact the header exists to surface. Grouping rearranges and never filters, and a row with no value for the key bands under "no value", last. The DSL also learnsmetadata.<key>:<value>, resolved against the entity's JSON column, and a bareattr:asking whether a value exists at all; in global search, qualify it with an entity, as inserver@metadata.env:prod.# on the Systems listmetadata.env:prod | by region | sort health desc -
Search says why a row matched: Matching servers on
subscriptions:>50000used to list names with no numbers, so the only way to learn why a row was there was to open it. Every attribute an expression names now travels with the query and renders under the result in written order, including underOR, where both values are what tell the two halves apart. The per-table filter box gains a preview of the rows its filter selects, with a count, so a subset can be read before Enter changes the table; it reads the entity's own view rather than the table's, which is what lets a filter on an attribute the table renders no column for still show its values. Both surfaces read the epoch the page is showing rather than the latest, so a pinned page finds what existed then. -
Readable tables from every CLI command:
db querygains--format text, which renders the result as a table sized to your terminal, with numeric columns right-aligned off the Arrow schema so a port or an account ID still reads as text. Every text table the CLI prints now goes through one renderer, including the collector build, sodb schemas,checks findingsand the deployment listings all lay out the same way: prose columns wrap at word boundaries, value columns keep their width, and output that is not a terminal is laid out to 100 columns with no color.csvis still the default fordb query, so existing scripts are unaffected.insights db query --format text "SELECT name, cluster, connections, cpu FROM hx.servers WHERE epoch = (SELECT max(epoch) FROM hx.server_stats) ORDER BY name" -
A data directory that records what it owns: Node and system ids name persistent state (the
$INS.node.<id>.*subjects, the scrape stream, the catalog file), and nothing recorded which ids a data directory was built under. Changing one in config silently stranded everything named after the old one: a fresh catalog, an empty history, and months of data under a name no instance opens, discovered when a dashboard came up blank.identity.jsonnow records the ids the last run owned and the resolved names those ids produced, and a start that no longer claims something warns and names the unclaimed state on every start rather than once.insights config checkmoves the decision ahead of the restart and validates the configuration (including reporting each system's resolved disabled-check set);insights config migrateperforms it, moving the catalog and its write-ahead log onto the new names. Both run against a stopped instance, which moving a catalog requires.insights config check --config /etc/insights/config.yamlinsights config migrate --config /etc/insights/config.yaml # adopt the new naming schemeinsights config migrate --rename system:west=north --config /etc/insights/config.yaml -
One Prometheus endpoint for a whole deployment: Prometheus needs a route to every node and a target list that changes as nodes come and go, which a fleet behind a leafnode, NAT or a tailnet does not give it. With
prometheus.aggregateset on one node, each scrape of that node's/metricsdiscovers the deployment's nodes over$INS.ping, asks every one for its metrics over NATS, and serves the merged set with asourcelabel per node.insights_metrics_source_upreports which nodes answered.insights prometheusserves the same endpoint as a standalone process. Enable it on exactly one endpoint, since two aggregators report every series twice.prometheus:aggregate: truetimeout: 2s # shorter than the scrape timeout of whatever reads it
Improvements
-
Query results stream instead of being materialized: The DuckDB driver runs a statement to completion and wraps a finished result, so both streaming endpoints spent memory proportional to the whole result before producing a single batch, and a seven-day backup window took a production instance down. Neither
db.memory-limitnortemp_directorybounds that, because a materialized result is neither accounted against the buffer manager nor spillable to disk. The endpoints now execute as a DuckDB streaming result, so peak memory is a function of one batch, and the ack window, batch watchdog and row cap become bounds on work rather than pacing over an already-realized result. -
Single-epoch stream and consumer queries no longer time out: The entity views resolved each row's configuration with a correlated lookup that expanded the retained stats against the whole options history before the epoch filter could apply, so a query for one epoch of
hx.streamsorhx.consumerscould run past the query endpoint's 30-second limit. Configuration is now resolved through per-entity validity intervals, with the window running over the options history alone. No public column changes, and a full-history comparison against a production copy found no row differences. -
Retention no longer blocks queries for minutes: The orphan-identity prune expressed its check as a correlated
NOT EXISTSinside theDELETE, which planned as an anti-join over the largest unindexed table in the schema and held DuckDB's single write lock for the duration while every web query queued behind it. It now finds the doomed rows in a read and deletes them in primary-key batches, IP queue identities included, and each slow prune statement is logged so a recurrence names its own table. The sweep also runs on the indexer right after an epoch commits, at most once perdb.retention.interval, instead of on a ticker of its own that could overlap a commit, stall it, and fail the post-prune checkpoint with "there are other write transactions active". -
Throughput rates are computed per entity: Every metrics view took its deltas per entity and then divided the sum by the epoch interval. An entity that misses one scrape has its delta span two intervals, charted as one, so a fleet whose throughput never moved drew a dip where the entity was absent and a matching spike where it returned. Two variants were worse: raft metrics summed the committed index across groups before differencing, so a group missing from one scrape subtracted its whole log index and produced commit rates orders of magnitude off; and account metrics divided one epoch's delta by a whole bucket span, understating throughput at every window of three hours and wider. Rates are now computed per entity and then summed, and bucketing samples a rate rather than dividing a delta. Each entity's delta is divided by its own elapsed interval, in the aggregate views and in the cluster and account detail sparklines, so a server returning from a missed scrape spreads its delta over the gap instead of charting a spike. A missing point on a throughput card reads as a gap rather than pulling its range bar and last value toward zero.
-
An epoch that reached 17 of 18 servers no longer looks whole: A server that misses the scraper's discovery window is dropped with no error, and the epoch's system aggregates silently lose its routes, gateways and throughput. Each epoch's server set is now diffed against the last and what disappeared is named, and the scraper's own expected-versus-observed report is recorded on
hx.epochsand exported as gauges. An epoch with no report stays NULL or NaN, which reads as unknown rather than complete.A server can also answer the discovery ping and STATSZ from queues of their own while its other monitoring endpoints stall, so it counted as observed while producing no rows, vanished from the UI and charted as a dip. The new
server-065(Server Not Reporting) reports a server with novarzreply in an epoch where another server did reply and a peer still routes to it, and the servers table and detail page keep it listed. Where it still answered STATSZ, those counters are stored as ahx.server_statsrow markedstatsz_fallback, withleafs,remotesandgatewaysNULL because STATSZ has no equivalent. -
Every check's evidence panel shows what that check measured: A check is described in four places (the code that identifies it, the macro that computes it, the prose that explains it, and the panel showing a finding's supporting data) and those had drifted apart. Panels bound to a code's older meaning queried another check's table with this check's key, which resolved against an unrelated row and rendered it as evidence rather than failing; twenty-five rendered a generic table carrying no evidence at all; six codes were registered twice, so filename ordering decided which body survived. Every registered check now has a panel showing the quantity its own finding reports. Nineteen documented thresholds that sat on the wrong side of their macro's comparison are corrected, four upstream
io.nats.monitor.*keys now use the same boundariesjsm.gocompares them with, and the mechanizable half of that agreement is a test: the documented operator against the macro, the upstream boundaries per key, and each aggregation semantic against the number its own macro reports.Panels also read the columns their check declares it fired on rather than recomputing the number from source tables, which is where
server-005drew a server at 95% ofmax_memoryas healthy andserver-038andserver-039printed byte counts with a MiB suffix. Threshold markers use the value configured for the system being viewed rather than the registry default, and an optimization check's detail is measured over the check's configuredlookback, so changing the page's time range no longer changes the number a finding was made on.An event in the health timeline and the panel header beneath it stated the same finding twice, and are now one row: the severity, the code as a link to the other entities firing it, where the finding is in its life, and the check's own explanation behind an info icon. Each threshold there says where it came from and whether an operator moved it. Expanding an event evaluates it at its own epoch rather than wherever the page is pinned, which is what let a resolved event describe its condition as still true. Panels also draw from a fixed set of shapes, so a gauge names the ceiling it divided by and a bar means the same width in every panel rather than being scaled to the longest label beside it.
-
What a check says about itself now matches what it does: A check's name, description, remediation and trigger were written out in six places, and the copies had drifted: rows filed under the wrong group, triggers naming the wrong comparison, and conditions the SQL applies that no text mentioned. Each check is now described once, and the reference table, the web UI,
insights checks infoand the text on a webhook payload all derive from that one description. The wording is plainer, and it names the threshold that decides a finding rather than the default that threshold ships with, since an operator can change it and the panel shows whichever value is in force. -
healthzconditions split by what an operator does about them: The server reports a dozen distinct conditions under one error type, andserver-015carried all of them under a single remediation, so a rejected configuration and a full disk read the same. They now split into a configuration the cluster refused, an asset assigned here and missing, a store that cannot write, and a Raft group the server cannot serve from, and the asset each error names is indexed alongside the message rather than parsed back out of prose. A new check reports a Raft group whose write-ahead log failed, whichhealthzcan only describe andraftzcan name. -
connection-002measures against the server's own limit: It compared pending bytes against a fixed 1 MiB, which is 1.6% of the 64 MiB default and half of a server tuned to 2 MiB, so it reported a different thing on every deployment and could sit above the point at which the server actually stops the connection. It now measures the fraction of that server's ownmax_pending. -
Checks judge what NATS actually reports: Each check's predicate was compared against live nats-server behavior, and several changed what they report:
server-008no longer reports a restart that a configuration change explains, comparing theconfig_digestnow indexed fromvarz. Servers older than 2.11, which do not report a digest, keep the version-only rule.server-014andserver-048escalate only once a condition has held for asustainwindow, so a booting server's recovering meta layer is a warning rather than an immediate critical, while a disabled JetStream stays critical.account-013could not see a tiered account JWT's JetStream limits, which leave the flat limit columns empty. Every limit set a JWT declares is now indexed inhx.account_js_tier_opts, backfilled from stored claims, and the check reads those.server-061counts the dedicated routes each pinned account adds, taken fromroutez, so a cluster pinning several accounts no longer hides a lost peer under its expected route count.consumer-004,consumer-005andstream-009report at info. The sequences and message counts they compare are sampled at different moments, so a mismatch is evidence to look at rather than proof of loss.system-007stays critical when offline peers leave the meta group below quorum, and reports a warning when no meta leader has been seen across two scrapes, which missing monitoring replies can also cause.stream-034andconsumer-020are new and reportio.nats.monitor.*metadata that is invalid and therefore cannot be evaluated.account-005andservice-002keep a confirmed finding through an epoch whose subscription data is incomplete, rather than resolving it and firing it again, and the finding shows when it was last confirmed.server-049(Leafnode Auto Compression with High Count) is retired:leafzreports negotiated compression, not the configureds2_automode, so the check could not establish what it claimed.
-
Consumer storage is shown as the consumer uses it: The consumer page showed the parent stream's storage, but a file-backed stream can host a consumer with memory storage. It now shows the consumer's effective storage, the stream's storage and the memory override separately.
-
One system's fault no longer stops the node: A node with several systems holds N independent DuckDB files, and any one failing to open (a corrupt file, a bad path, a full disk) failed startup for all of them, closing the catalogs that had built fine. The node an operator most needs running is the one where something is already wrong. That system is now degraded and skipped while the rest serve; no catalog opening at all still exits non-zero. The degraded catalog is retried every minute, so once the file, disk or mount is repaired its queries and indexing resume without restarting the node. Its finding feed and notifications resume only after a restart.
-
DuckDB recovery is confirmed, retried and bounded: The reconnect guard trusted
PingContext, but the DuckDB driver implements noPinger, so a ping returned nil even after the instance had been invalidated and every query kept failing until the last pre-fault idle connection aged out of the pool. It now confirms with aSELECT 1on the raw pool, and recognizesFATALas invalidating alongsideINTERNAL. Web reads, which run on the streaming query endpoint outside the recovery wrapper, now report through it and re-run the query once. A recovery attempt that cannot return within 30 seconds exits the process so a supervisor can restart it, rather than leaving listeners serving an unusable database. -
A scrape trigger answers as soon as the scrape starts: A scrape routinely outlasts the request asking for it, so waiting for it meant callers timed out on scrapes that had succeeded. The trigger now returns once the scrape is accepted; completion is observable without waiting, because the epoch lands on the system's
feed.epochbroadcast once it is committed. The runner's loopback control service goes with it, which also takes four queue subscriptions per system off the sink account that a second scraper on a shared account could otherwise have answered. -
Finding transitions are tracked whether or not you have an endpoint: The per-epoch diff of check results lived inside webhook delivery, so state changes were computed only when an endpoint was configured, and only for the first system on a node. A tracker per system now owns that state; the finding feed publishes the transitions and webhook delivery consumes them. Names are resolved for transitions only rather than for every finding in an epoch, which is what keeps the seven-way identity join off the hot path, and cached, since a name is immutable per key and a resolve can then still name an entity that has since been deleted.
-
Notification delivery no longer depends on a KV bucket: Endpoint config was mirrored into a JetStream KV bucket at boot and read back live, so an unavailable bucket (its single replica on a downed node, say) was indistinguishable from "no endpoints configured" and silently stopped delivery every epoch. Config now stays in memory. The store keeps only the delivery log, and a node with no JetStream loses delivery logging rather than delivery. The per-endpoint
timeoutandmax-retriesknobs are gone; each delivery makes up to 3 attempts with a 10s request timeout (one attempt when the receiver answers with a 4xx other than 429), and a failed delivery is retried for that endpoint at up to one-minute intervals until it succeeds. Old config files carrying the keys still parse.Delivery also left the ingest path. It ran inline in the epoch commit, one endpoint after another, so a receiver that accepted the connection and then hung could stall indexing long enough to lose epochs. Each endpoint now has a delivery worker of its own: a failed delivery is retried for that endpoint alone, on a backoff capped at one minute, until it succeeds, and transitions waiting for a slow receiver are coalesced to each finding's latest state, so the backlog is bounded by the number of findings. Folding new transitions into that backlog costs the same however large it has grown, so a receiver that keeps rejecting cannot slow indexing. Delivery is at-least-once.
-
Every metric carries a
systemlabel: All the metric families on/metricsare per-system, so each series names the monitored system it describes. Aggregate withsum by (system) (...); a node monitoring two systems would otherwise read as one blended series. The bundled Grafana dashboard is updated to match. -
DuckDB 1.5.5: Takes a silent data-loss fix upstream, where
ALTER TABLE ... ADD COLUMN IF NOT EXISTS <col> DEFAULT <non-constant>was not a no-op when the column already existed and could overwrite every row. Two Insights migrations use a non-constant default, so this was latent rather than live, but the idiom reads as safe. Also included: checkpoint failures stop being swallowed, a hash-aggregate segfault, a memory-manager deadlock, four out-of-bounds reads, and two window-frame correctness fixes. -
Tested against the nats-server versions we claim to support: Recorded monitoring replies from 2.10.27, 2.11.17, 2.12.14 and 2.14.4 are now committed and replayed through the real decode path on every build, so a version whose fields Insights silently drops fails a test instead of quietly producing empty columns. A weekly job compares the pinned server's monitoring types against the newest release of each minor and reports when the pin has fallen behind. Two immediate results: the pin was moved to a patch that declares 11 JSON fields the previous one did not, all of which were being discarded, and the documented floor was corrected to 2.10.27, the first patch where every monitoring endpoint Insights uses is present.
-
Column comments describe what the data actually does: The query documentation tells agents and operators to trust the catalog, so a comment that describes the wrong thing propagates into queries. Several were wrong in ways that changed an answer:
conn_stats.msgs_sentis the server's delivery to the client rather than the client's send;account_stats.total_connsis a gauge always equal to conns plus leafnodes, so nothing can derive connection churn from it; andserver_stats.in_msgsand its siblings include route, gateway and leaf traffic, so summing them across servers is not client throughput (route traffic alone was 78% of the fleet delta on one production cluster). Also corrected:num_redelivereddecreases, routes count connections while remotes count peers,cache_hit_rateis cumulative and can exceed 1.0,cpuis a one-second sample, and in the raft columnsgroup_ididentifies the reporting server whileleaderis a peer hash rather than a name. The replica tables needed more than wording: they hold three kinds of row per entity per epoch, and leader-reported peer rows carry zeros for every message and sequence column while self-reported rows hardcodeis_currenttrue andis_offlinefalse, so a replica-health query has to restrict topeer_server_pk != 0. -
Route pool size is recorded: NATS opens
route_pool_sizeconnections per peer, so a check counting routes against an expected total was wrong in a pooled cluster. The column and the code that fills it land together. -
Requests work from accounts without
_INBOX.>: A least-privilege account that is not granted_INBOX.>, a common setup on Synadia Cloud, could not complete a single request, because every reply landed on a subject it may not subscribe to. Every NATS connection block now takes aninbox-prefix, for example--sys.inbox-prefix/INSIGHTS_SYS_INBOX_PREFIXon the server side and--inbox-prefix/INSIGHTS_NATS_INBOX_PREFIXfor a client command. Leave it empty unless the account requires it; when set, the account must allow subscribing to<prefix>.>. -
Subsystem toggles are one spelling:
--web,--indexer,--scraper,--simulator,--prometheus,--updaterand--telemetryare the CLI form, and each now has a matching environment variable (INSIGHTS_UPDATER,INSIGHTS_WEB, and so on). The--<subsystem>.enabledforms still work but are hidden from--help. YAML is unchanged: the section is a map, so use itsenabled:key. -
Service search reads only the epoch it asks about: A free-text search over services decoded the subject of every retained subscription before applying the epoch filter. The epoch's own subscription rows now drive the join, so older subscriptions are skipped rather than decoded.
-
An idle federated link carries less: A remote web tier subscribed to the once-a-second disconnect feed for the life of the process, though only the real-time view renders it, and the web framework polled component metrics every second across every leaf. Both ends now carry the feed only when the real-time view is enabled, and the poller is off, so its two settings are gone (see Considerations). The scraper also sends
raftzrequests only for the accounts that can answer them. -
An indexer whose stream consumer stops says so: Lost heartbeats, a deleted consumer and other errors the JetStream consumer reports only through its error handler are logged, and a subscription that ends for good logs "consumer stopped delivering" instead of looking like a stream with nothing new.
-
The toolbar rests on LIVE: The next-scrape countdown moved into a tooltip, a ring pulses on each epoch so a dead update stream no longer looks like a healthy one, pausing updates the indicator at once, and a pinned window reads "Pinned" rather than "Paused", since pinning does not pause the scraper.
-
Agent skills come from one place: The Insights query skill for AI agents is no longer rebuilt inside the binary and downloaded from the info dialog. The dialog links to the public synadia-io/insights repository, which carries the Claude plugin marketplace, the Gemini extension and the agent instruction files. A release opens a pull request there whenever its skill and extension files differ from what is published, rather than maintaining a second copy inside the binary.
Security
-
The query API can no longer reach outside the database: The read-only query API constrained the DuckDB statement type but left
enable_external_accessat its default, so a plainSELECTcould read local files (read_text,read_blob), enumerate the filesystem (glob), and issue outbound HTTP (read_csvover http, a server-side request forgery primitive), all while passing the statement-type guard. Every connection now disables external access, extension autoinstall and community extensions. This is not runtime-configurable: no config field, environment variable or flag turns it back on. Because the DuckDB setting is a one-way latch, the optional PostgreSQL-attach build opens permissive and latches every catalog off immediately after attaching, rather than only the attach target. -
Compressed monitoring replies are bounded: The
raftzparse path expanded an S2-compressed response with no decompressed-size limit, so a spoofed server could reply with a small payload that expands to gigabytes of Go maps and exhaust the heap before any downstream size check; the NATSmax_payloadbounds only the compressed bytes. The decompressed stream is now capped at 64 MiB, and hitting the ceiling is reported as its own error rather than as ordinary malformed JSON. The bundled scraper takes the matching fix for its two S2 paths. -
Images and builds carry fewer vulnerabilities: The Insights image is built on distroless static, which holds CA certificates, time zone data and a handful of OS packages, and no shell or package manager, instead of a Debian base whose packages every scanner reported. The new collector image uses the same base. Releases are built with a patched Go toolchain rather than the first 1.26 release, and a release whose published images carry a fixable critical or high CVE fails. The
latesttag and the suffixedlatest-collector,latest-windowsandlatest-dynamictags move only on a final release, wherelatestused to move on release candidates too.
Fixes
-
Checks that could never fire, on data that was there: Three independent causes. The indexer handed pre-encoded strings to DuckDB's appender, which marshals whatever it is given, so every JSON column landed as a JSON string and every
json_extracton stream and consumer metadata, backoff and subject transforms returned NULL, whilepriority_policyandreplay_policykept the quotes the server's own formatting puts on them. None of theio.nats.monitor.*checks could fire on scraped data. Separately, four checks filtered a write-on-change options table by exact epoch and so reported nothing at all across their entire retained history. And stream storage, retention and discard policies were stored in Go's display spelling (File,WorkQueue,DiscardNew) whilestream-022,stream-023andstream-031compared against the NATS API spelling (memory,file,workqueue), so those three never matched. All three are fixed, and migrations unwrap the JSON rows and rewrite the enum values already stored. -
Raft findings on states no server reports: Two Raft checks compared against state names in the wrong case, so they matched nothing on real wire data.
-
Raft groups scattered their history when one reply went missing:
raftzis requested per account and answered per peer, so any single reply can go missing on its own. Pruning treated absence as deletion whatever the reason, so one lost epoch evicted every group and re-minted thousands of keys on the next, scattering each group's history across new rows. A group is now evictable only on the word of its own peer, for its own account. -
Accounts that could never be named: Seven endpoints resolve an account by name and mint a key when it is new, but only the
accountzhandler wrote the account identity row, and only for a name its cache had missed, which the resolve had already filled. An account first seen anywhere else accumulated stats under a key no view or check macro can join to a name, and the cache, rebuilt from that table on restart, would later hand the key to someone else. -
Pinned, sorted and paged views reverted on the next epoch: Every control that changed what a page showed fetched the page from its own element, and the page's own bootstrap stream stayed live and re-rendered its load-time state on every epoch. A pin snapped back to live, a sorted table flipped back, page 2 became page 1, and a relation tab's sort was overwritten by the page's default. Controls now set their signals and dispatch to the element that owns the page's one request, so each request replaces the stream before it.
-
An open check detail closed itself every epoch: Each epoch re-patched the block holding the health timeline, and its template still rendered the empty placeholder the detail had been fetched into, so the morph emptied whatever had just been opened. Groups and details are also keyed by epoch now, and the flash guard no longer writes
display: noneback onto shown elements, which used to collapse the page for a frame and clamp the scroll to the top. -
Two browser tabs on one page cancelled each other: The connection tracker allowed one stream per session and route and cancelled the previous one, but every session shares a store name and carries no per-client id, so the key was the route alone: six concurrent requests for one page produced five 500s, and a client whose stream was cancelled mid-render stayed on skeletons.
-
Paginated tables reshuffled between refreshes: Every paginated table ordered by the chosen column alone, so tied rows landed on a page in whatever order the plan produced. The consumers table, with thousands of bulk consumers tied on health, changed on every refresh and rows moved between pages. Each paginated
ORDER BYnow ends with the row's key. -
A time window with no data read as a healthy system: A window can outlive its data, whether retention pruned it or a session restored a pin from weeks ago. Every count then rendered zero and every check passed for want of an entity to fail on, and the overall grade reported 100%, with nothing on the page to tell that apart from a healthy idle system. The paused-offset badge had the same shape of problem, printing whatever unit divided the offset evenly, so a five-minute pin read "350s" and one months back read "109650m".
-
The toolbar said paused when nobody had paused it: A render that reached the time controls before the scraper had answered wrote the offline anchor into the pinned client signal, and that signal outlives the outage, so seconds later the scraper connected and the toolbar still read paused against an epoch nobody chose, until the page was reloaded.
-
A standing finding's age reset on every restart: The start time was stamped with whichever epoch the tracker happened to baseline on. It is now derived from the check history, as the first epoch of the current unbroken run, and the wall-clock re-send re-asserts it to every Alertmanager endpoint each minute so a receiver that has expired the alert relearns the real start.
-
A stored cross-site scripting hole in check-finding links: Detail links formatted resolved URLs carrying entity names the monitored servers report themselves into both an HTML attribute and a JavaScript string argument, while escaping only the visible label, and the anchor was emitted raw so the template's contextual escaping never ran. A crafted server, cluster or gateway name could break out of the attribute and inject markup or script into an operator's session. Both output contexts are now escaped at the single point every call site goes through.
-
Some detail pages rendered as if the entity were gone: The account key on leaf nodes, and the account and user keys on connections, are nullable, the latter for any connection with no authorized user. Scanned into non-pointer integers, each failed its page's core query, which the handler renders as a missing entity while still returning 200. Found by executing roughly 1,400 statements of hand-written SQL across the detail pages for the first time, which is now part of the test suite.
-
Filter attributes that could not be used: The attribute dropdown offered attributes the underlying queries could not bind: global search reached 2 of 44 account attributes, the per-table filter failed on 73 attribute/entity pairs, and clusters were absent from it entirely. Every view now selects what its entity advertises.
-
Findings rows and detail pages disagreed on five icons: Twice they were swapped outright: the person glyph meant account in a row and user one click later, and the key meant user in one place and KV store in another.
-
Long values collapsed table columns instead of scrolling: Nothing floored the width of a flex table column, so the table always shrank to its wrapper, horizontal scrolling never engaged, and identifier columns degraded to a few characters while headers painted over the next column.
-
A one-line CLI table wrapped the whole box apart: Nothing bounded table width, so a long schema comment drew
db schemasa thousand columns wide. -
Windowed backups dropped the identity their rows named:
--startapplied its lower bound to the identity and options tables too. Identity is written once at an entity's first-seen epoch, so a window dropped it for anything older, and every view and check macro inner-joins one: the extract opened, counted plausibly and reported no findings. Identity is now narrowed to what the window's rows reference rather than filtered by time, and the copy verifies this before saving. A related refusal is relaxed: where the source database has lost an identity row, a faithful copy carries that gap, and no re-run could do better, so the source is asked whether it still holds the orphaned keys and the backup is kept with a warning naming them. -
insights webcould not be configured from a config file: Itsweb:,prometheus:andupdater:sections were read from the file for no command butserveand the collector, so the UI bound loopback and a published port answered nothing, with no error to point at. -
Systems read as stale on every load: The fleet list bucketed freshness on a fixed wall-clock age, so any system whose scrape cadence exceeded 90s was always stale. Staleness now allows two missed intervals plus a processing buffer, relative to each system's own cadence.
-
Stopping a container skipped the database checkpoint:
insights servehandled only an interrupt, so SIGTERM, which is how Docker, Kubernetes and most supervisors stop a process, ended Insights without its shutdown checkpoint and the next start replayed the write-ahead log. SIGTERM now runs the same clean shutdown as Ctrl-C. -
Replicated streams and consumers were re-keyed every epoch: Each replica of an R>1 stream or consumer reports its own creation time, microseconds apart, and a follower can report a stale configuration mid-propagation. Every report was treated as authoritative, so a consumer's key was minted again on nearly every report, its findings resolved and fired again each epoch, and a follower could add a second options row that duplicated view rows until the configuration next changed. Identity and configuration now come from the leader alone.
-
Scrapes dropped replies on large or busy systems:
routezasked each server for every route's subscription list, which grows with the whole subject space, so on a system with millions of subscriptions the replies overran the scraper's pending limit, were dropped, and stalled the endpoints queued behind them. It is now asked with the lists off. The pagedconnz,jszandsubszwalks stopped when one idle server answered last and skipped a record at every page boundary. A scrape that overran its interval forfeited a whole epoch slot, one undecodable reply discarded every server's reply for that endpoint, and a reply too large to republish undermax_payloadwas rejected along with the rest of its batch; the scraper now splits such a reply and the indexer reassembles it. -
One server that stopped answering cost the whole fleet its epochs: A server can stall on its monitoring endpoints while its peers still route to it, which is what a rolling upgrade looks like from the outside. Every broadcast and every page waited the full timeout on it, so a single mute server stretched one scrape across several intervals and every other server lost the epochs in between. A server that lets a broadcast run out its timeout is now not waited for again for the rest of that scrape, and its replies are still taken if they arrive before the rest of the fleet has answered. Only fleet-wide requests judge a server this way, since those are the ones every server answers, and a reply that failed to decode judges nobody, because it carries no server to judge.
-
Tables listed an account's entities more than once:
hx.account_identcan hold the same key and name at more than one epoch, and nine table views joined it directly, so every stream, consumer, connection, user, leaf node, service, KV store and object store of such an account was listed once per identity row, and page totals grew with it. A migration also deletes the repeated rows, keeping each identity's first observation, so a query of your own that joins the table stops multiplying too. -
A measurement nobody took was drawn as a measurement of zero: A rate needs the same server's sample in the previous epoch. A server that had just restarted, which mints a new key, or that missed that epoch, has none, and the servers table drew its throughput and slow-consumer rates as 0, which reads as a server carrying no traffic. Those cells now show as unavailable and say why. Sparklines had the matching problem: a point with a missing epoch on both sides had no neighbour to draw a line to and disappeared entirely, hiding the samples around a gap as well as the gap. Such a point now renders on its own, and a dashed line spans each gap so the break is visible. The dashed span is interpolated between the samples on either side, never a measurement, and the hover readout leaves it out.
-
A page past the end of a shrunken table showed nothing: An empty page beyond the first carried no total, so a table that shrank while you were on a later page, or a filter applied there, rendered no rows and a zero count. The table now falls back to its last page with the real total.
-
A check's stream count linked to a list missing some of them: The System page counts a stream check's findings on KV and object store backing streams too, but the streams page it linked to hid those streams. Under a check filter the streams page now lists backing streams as well, named with their kind and linked to their own detail page.
-
Detail page headers lost their parents or overflowed: The consumer page rendered with no account, stream or server breadcrumb, and the object store page lost its account and server, because the lookups ran on an already-cancelled context. A long name, such as a subject-shaped consumer name or an account key, pushed the header past the page edge rather than truncating, and the loading skeleton reserved no room for the header, so the page jumped when it arrived.
-
Selected and disabled states that never showed: Bindings written with a hyphen in the attribute name were never applied, so the relation cards' selected border and two buttons' disabled state had no effect.
Considerations
Most of the upgrade takes care of itself. The database migrates on first start and your check history comes with it, and a single-system config file from v0.1.10 starts as it is: keys that no longer exist are ignored rather than rejected.
Two settings are worth a look before you restart, and only if you use them.
Check codes have clearer names, so a check-thresholds override, a
disabled-checks entry or a notification subscriptions or ignore entry that
names a code needs the new name. A handful of threshold parameters were also
renamed, and some take typed values like 100ms and 1 MiB rather than a bare
number with the unit in the parameter name.
insights config check finds those names against your existing config without
starting anything, so run it first. It reports one group of problems at a time,
so run it again after each round of edits until it prints
configuration is valid. It checks names, not values: a new threshold value is
still yours to read against the tables below.
Does this affect you?
Each row is something you can check in a few seconds.
| Area | Affects you if | Go to |
|---|---|---|
| Check codes | grep -nE '\b[A-Z]+_[0-9]{3}\b' config.yaml returns anything | Checks |
| Check parameters | a check-thresholds override names a parameter ending _ms, _secs, _minutes, _mib, _gib, _kib, _pct or _frac | Checks |
| Notification config | grep -n 'max-retries' config.yaml returns a line, or an endpoint sets timeout: | Configuration |
| Backup automation | a script runs insights ops backup with --output -, or publishes to $INS.db.backup | Operations |
| Saved SQL and dashboards | a query names hx.check_results or an audit. macro, calls json_extract on metadata, backoff, mirror_subject_transforms or subject_transforms, or compares storage_type, retention_policy, discard_policy, store_compression or persist_mode against a capitalized value | Data |
| NATS clients | a tool you wrote publishes to $INS.db.*, $INS.checks.* or $INS.ops.* | Interfaces |
| Sizing automation | a script reads total_gb, query_gb, write_gb or index_gb from ops.sizing | Interfaces |
| HTTP gateway callers | a caller posts to a /db/... path | Interfaces |
| MCP automations | a saved prompt or script calls an Insights MCP tool without a system argument | Interfaces |
| Alert receivers | an Alertmanager route, inhibition or silence, or a webhook consumer, matches the entity_name label | Interfaces |
| Prometheus and Grafana | a dashboard aggregates without grouping by system | Interfaces |
| Container tooling | a script, probe or init step runs a shell or package manager inside the Insights image | Operations |
| Sink stream name | sink.stream, --sink.stream or INSIGHTS_SINK_STREAM is set to anything other than scrape | Interfaces |
| Monitored NATS servers | any of them runs NATS Server older than 2.10.27 | Before you upgrade |
| Telemetry | you run a trial build (a -licensed archive or the insights-licensed image) and would rather opt out | Configuration |
Before you upgrade
1. Check the minimum NATS Server version. Insights v1.2.0 requires NATS
Server 2.10.27 or later. Earlier 2.10 patches do not serve the raftz and
ipqueuesz endpoints, so the checks that read them stay quiet rather than
reporting an error, which is easy to miss.
nats server report jetstream # or: curl -s http://<server>:8222/varz | jq .version
2. Keep a backup from your current version. The database moves forward on first start and a v0.1.10 binary cannot read a v1.2.0 catalog, so a copy taken now is what makes going back an option.
insights ops backup --output insights-pre-1.2.0.db
3. Validate your config with the new binary. This reads the config file and
identity.json, and creates the data directory if it is missing, as serve
would. It opens no database and starts no listener, so it is safe to run against
a live deployment.
insights config check --config /etc/insights/config.yaml
Many configs pass unchanged. Where one does not, the report names the offending
code or parameter. A code that changed only in case and separator names its
replacement (SERVER_003 was renamed to server-003), and a parameter lists the
valid names. A code whose number or entity changed prints unknown check code
with no suggestion, so look it up in the mapping table.
The report shows one group of problems per run, notification patterns before
check codes, so repeat it until it prints configuration is valid. Add
--strict to make unclaimed state a non-zero exit for a deploy gate.
4. Reconcile ids if the report mentions unclaimed state. Because a node can now serve several systems, a data directory records the node and system ids it was built under, which keeps each catalog matched to the system it holds. Renaming an id in config used to leave the old catalog behind and start an empty history; it is now something you declare. Against a stopped instance:
insights config migrate # adopt the new naming scheme
insights config migrate --rename system:west=north # an id that actually changed
insights config migrate --prune system:retired-eu # forget one, deleting nothing
With no flags this adopts the v1.2.0 naming scheme, which is the ordinary
upgrade case: the ids held still and the names beneath them moved. Neither
--rename nor --prune deletes data.
Configuration
Removed
| Key | Environment variable | Note |
|---|---|---|
backup.object-store-ttl | INSIGHTS_BACKUP_OBJECT_STORE_TTL | Backups are built locally now and are not uploaded anywhere. |
web.metrics-timeout | INSIGHTS_WEB_METRICS_TIMEOUT | The component metrics poller they configured is off; nothing in Insights displayed it. |
web.metrics-interval | INSIGHTS_WEB_METRICS_INTERVAL | |
notifications.*.timeout | none | Each request times out after 10s. |
notifications.*.max-retries | none | Each delivery makes up to 3 attempts (one when the receiver answers with a 4xx other than 429), and a failed delivery is retried for that endpoint at up to one-minute intervals until it succeeds. |
None of these stop a node from starting when they come from a config file or the
environment: the keys are ignored, so remove them whenever it suits you. The
--web.metrics-interval and --web.metrics-timeout flags are the exception;
on a command line they fail with unknown flag.
Renamed
| Old | New | Note |
|---|---|---|
insights query | insights db query | The old spelling remains as an alias on the same command, so scripts keep working. |
insights ops backup --output <file> | insights ops backup save --output <file> | save is the default subcommand, so the old invocation still works. |
New
Node and system identity. Both subtrees are new, and they name the API
space each part of the deployment answers on. system.id defaults to default
and node.id defaults to the id of the single system the node serves, so a
single-system deployment works without setting either. Set them when you want
to address something by a name you chose.
node:
id: "us-east" # INSIGHTS_NODE_ID
metadata: # labels for `insights node list` and the Nodes tab
region: us-east-1
system:
id: "prod" # INSIGHTS_SYSTEM_ID
metadata:
env: prod
See Architecture and Configuration.
Multiple systems. One node can own several monitored systems, each with its
own DuckDB catalog, JetStream stream and $INS.sys.<id>.* API. Set systems:
only on a node monitoring more than one system; it replaces system.id and the
flat scraper config rather than sitting alongside them. A node serving more than
one system has no single system id to derive its own from, so node.id is
required there.
node:
id: "central-1"
systems:
- id: "core-prod"
scrape:
nats:
server: "nats://core.internal:4222"
creds: /etc/insights/core-prod.creds
interval: 20s
retention: 24h
- id: "edge-west" # collector-fed: no scrape block
retention: 6h
See Deployment.
Collector deployments. insights-collector runs a scrape-and-stream collector
with no local database, reading the same config file but using only the
data-dir, node, system, sys, scraper, sink, license, updater and
telemetry settings. A central node picks the system up by declaring it with no scrape
block, as above. The collector's node.id defaults to its system.id, as does a
central node's that serves only that system, and a second node claiming an id already in
use refuses to start, so give them distinct node.id values. See
Federated Deployment.
Turning a check off. disabled-checks is new. A disabled check keeps
running and stays visible marked disabled, with its real findings; it is left
out of health grades and is never delivered as a notification. It suits a check
that cannot be acted on in your topology, rather than one whose signal you would
still want to see.
disabled-checks:
- account-012
Notification subscriptions take patterns. subscriptions and the new
ignore list accept an exact code, a trailing-wildcard prefix, or *. ignore
applies after subscriptions, so it carves exceptions out of a wildcard. An
empty subscriptions list delivers nothing, so subscribing stays explicit.
notifications:
webhook:
- name: "PagerDuty Relay"
url: "https://example.com/webhook"
subscriptions:
- server-*
- stream-002
ignore:
- server-046
systems: # empty = every system this node owns
- core-prod
systems: is new alongside multi-system support: it scopes an endpoint to
particular systems, and an empty list delivers for all of them. See
Notifications.
Sink stream shape. sink.replicas and sink.storage are new. Replicas
above 1 need a clustered sink, since the embedded server is a single node. The
stream is a buffer rather than the history, so storage: memory is a reasonable
choice where losing the buffer on restart is acceptable.
Aggregated Prometheus endpoint. prometheus.aggregate serves every node's
metrics from one endpoint, discovering nodes over $INS.ping, which saves
adding a scrape target per node. Enable it on exactly one node: scraping two
aggregators would report every series twice.
prometheus:
aggregate: true
timeout: 2s # keep this shorter than your scrape timeout
See Metrics.
Inbox prefix. nats.inbox-prefix sets the request/reply inbox prefix, for
accounts that are not granted _INBOX.>.
Telemetry, on by default in trial builds. A pulse every five minutes
carries a locally generated random instance id, the release version and
platform, a few configuration durations and counts, the size of the watched
environment, how many checks have a finding, and usage counters for the web UI
and for requests made by the CLI, coding agents, MCP and HTTP clients. It
carries nothing about the monitored system: no server, cluster, account,
subject, stream or consumer names, no addresses, no message data, no
configuration values, no query text. Only trial builds carry the reporter;
the Insights build contains none. insights web sends no pulse of its own but passes
the page views it serves to the node holding each system's database, so set the
same switch there to stop that.
telemetry:
enabled: false # or --telemetry=false, INSIGHTS_TELEMETRY=false
print: true # log every pulse and read exactly what would leave
See Telemetry.
Changed defaults
db.memory-limit defaults to 4GiB rather than 4GB. DuckDB reads GB as
10^9 bytes, so the old default capped each database at 3.7 GiB and the new one
at 4.0 GiB. A value you set yourself keeps its meaning; write it in MiB or
GiB to get the size it names.
Otherwise, anything you already set keeps its meaning. The subsystem switches
(scraper, indexer, web, simulator, prometheus, updater) each gained
an environment variable, so INSIGHTS_WEB=false works alongside
INSIGHTS_WEB_ENABLED=false, and updater gained the --updater flag the
others already had. The --<subsystem>.enabled flags still work but are hidden
from --help. In YAML the section is still a map, so keep using its enabled:
key.
Checks
Check codes now name the entity a finding is about. A finding on a server
starts with server-, one on a stream with stream-, and so on, so the code
tells you where to look before you read anything else. The previous codes
grouped by subsystem instead, which is why CLUSTER_007 and META_001 both
described servers. Codes are also lowercase and hyphenated throughout, matching
how they appear in the UI and the API.
Your history comes with you. A migration rewrites stored findings onto the new codes in one transaction, so timelines stay unbroken and open findings keep their age.
The config file is the one place that may need an edit, because codes appear
there by name: in check-thresholds, in disabled-checks, and in the
subscriptions and ignore lists on a webhook or Alertmanager endpoint. If you
set none of them, there is nothing to change.
Codes and parameters are validated at startup
A code matching no check is reported at startup with an error naming it, and the
node does not start. A check-thresholds entry under an unrecognized code used
to be passed over without comment, which meant a threshold you thought you had
set was quietly doing nothing. Where only the spelling changed the error names
the replacement, so SERVER_001 tells you to write server-001. Where the
number or the entity changed, the new name cannot be derived from the old one
and the error says only unknown check code, so look it up in the
mapping table. A parameter name that no longer exists
fails the same way and lists the valid names.
Every place a code appears in the config is checked this way, the top-level and
per-system check-thresholds and disabled-checks included:
check-thresholds:
server-003: # was SERVER_003
cpu_percent: 80
notifications:
webhook:
- name: "Relay"
url: "https://example.com/webhook"
subscriptions:
- server-001 # was SERVER_001
Codes also appear outside the config file, where nothing validates them for
you: the Alertmanager alertname, the finding feed's subject token, and
hx.check_findings.code in saved SQL and agent prompts.
Eight checks were retired
Seven of them have no replacement and no new spelling, so a config entry naming one fails startup as an unknown code; remove it. Their stored findings are dropped rather than remapped.
CHANGE_003, JETSTREAM_007, OPT_IDLE_006, OPT_PLACE_002, SERVER_006,
SERVER_009, SERVER_017.
Several were folded into another check rather than dropped outright. Their rows still go, because the absorbing check measures a different threshold and inheriting the old findings would attribute them to the wrong measurement.
The eighth, server-049 (Leafnode Auto Compression with High Count, was
OPT_SYS_017), is retired after the rename: leafz reports the negotiated
compression, not the configured s2_auto mode, so the check could not establish
what it claimed. Its stored findings are kept and still display. An entry naming
exactly server-049 in check-thresholds, disabled-checks, subscriptions or
ignore is accepted with a warning at startup and has no effect; OPT_SYS_017
fails as an unknown code.
OPT_PLACE_004 is a related case: it continues as account-014, but its stored
findings do not carry over. The old check recorded a server's key where the new
one records an account's, so the next evaluation writes them correctly instead.
Some thresholds take typed values
A threshold that encoded its unit in the parameter name now takes a value that
states it. Durations take Go duration strings, sizes take IEC binary strings or
a plain byte count, and percentages end in _percent and take 0 to 100. This
makes an override readable on its own. insights config check names any
parameter whose name needs updating, but not a value written for the old unit,
so convert values yourself: min_mono_frac: 0.8 becomes min_mono_percent: 80.
| Check (v1.2.0) | Was | Now |
|---|---|---|
connection-001 | rtt_ms: 100 | rtt: 100ms |
connection-002 | pending_mib: 1 | warn_percent: 75 |
connection-004 | idle_minutes: 5 | idle: 5m |
account-008 | max_size_kib: 64 | max_size: 64 KiB |
account-011 | min_conn_pct: 10 | min_conn_percent: 10 |
account-012 | warn_percent, min_total_bytes | gateway_percent: 30, min_traffic: 1 MiB |
leafnode-002 | rtt_ms: 100 | rtt: 100ms |
stream-010 | stale_minutes: 5 | stale: 5m |
stream-020 | consumer_leader_pct | consumer_leader_percent |
stream-022 | max_memory_mib: 100 | max_memory: 100 MiB |
stream-023 | max_uncompressed_gib: 1 | max_uncompressed: 1 GiB |
stream-028 | warn_window_minutes, crit_window_minutes | elevated_window: 1h, severe_window: 6h |
stream-031 | min_ack_wait_secs: 30 | min_ack_wait: 30s |
stream-032 | min_mono_frac: 0.8 | min_mono_percent: 80 |
system-004 | window_minutes: 10 | window: 10m |
server-020 | max_delta: 500 | churn_percent: 50, min_conns: 100 |
server-037 | saturation_pct | saturation_percent |
server-041, server-042 | pending_mib: 1 | pending: 1 MiB |
server-050 | min_growth_pct, min_mono_frac | min_growth_percent, min_mono_percent |
server-051 | warn_bytes_gib, crit_bytes_gib, warn_pct, crit_pct | warn_size: 10 GiB, crit_size: 50 GiB, warn_percent: 50, crit_percent: 80 |
server-063 | warn_seconds, crit_seconds | warn_duration: 5s, crit_duration: 30s |
consumer-019 | warn_abs, warn_multiplier, crit_abs, crit_multiplier | elevated_abs, elevated_multiplier, severe_abs, severe_multiplier |
server-010 | rtt_ms: 50 | multiplier: 2, severe_multiplier: 3, min_rtt: 10ms, measured against the rest of the cluster's routes |
server-018 | rtt_ms: 50 | multiplier: 2, min_rtt: 25ms, measured against the other gateways between the same two clusters |
Two defaults moved, both toward fewer findings: account-007 (was
OPT_ACCT_001) warns at 90% rather than 85%, and consumer-017 (was
OPT_SYS_003) at 90% rather than 80%. If you had raised either one yourself,
the override is no longer needed.
Several checks gained optional parameters whose defaults preserve current
behavior, so there is nothing to set: crit_percent on server-005 and
server-011, max_restarts on server-008, sustain on server-014 and
server-048, and sustain with baseline on system-009.
Some severities moved
Nothing to edit, though alert routing keyed on severity will catch a slightly different set.
- Warning to critical:
consumer-006,consumer-007,consumer-008,consumer-009,consumer-011. - Critical to warning:
server-014(critical again for a disabled JetStream, or once a recovering meta layer outlastssustain),system-007(critical again when offline peers leave the meta group below quorum). - Critical to info:
server-007,consumer-004,consumer-005,stream-009. - Warning to info:
server-002,server-010,server-048,consumer-018.
server-010 and server-048 can escalate from info the same way.
Nine checks are new
server-053, server-054, server-055, server-056, server-064,
server-065, stream-033, stream-034, consumer-020. They are on by
default. Run insights checks info <code> for what each one measures, or see the
checks reference.
server-065 is the one most likely to have something to say on an existing
deployment: it reports a server with no varz reply in an epoch where another
server replied and a peer still routes to it. stream-034 and consumer-020
report io.nats.monitor.* metadata values that are invalid for their key.
Full code mapping
insights checks list prints the current set. The mapping below is the one the
migration applies, so it is also how your stored history was rewritten.
| v0.1.10 | v1.2.0 | Note |
|---|---|---|
ACCOUNTS_001 | account-001 | |
ACCOUNTS_002 | account-002 | |
ACCOUNTS_003 | account-003 | |
ACCOUNTS_004 | account-004 | |
ACCOUNTS_005 | account-005 | |
ACCOUNTS_006 | account-006 | |
CHANGE_001 | server-023 | |
CHANGE_002 | server-024 | |
CHANGE_003 | retired | the check no longer exists; stored findings are dropped |
CHANGE_004 | stream-001 | |
CLUSTER_001 | server-057 | |
CLUSTER_003 | server-059 | |
CLUSTER_004 | server-060 | |
CLUSTER_005 | server-061 | |
CLUSTER_006 | server-020 | |
CLUSTER_007 | server-021 | |
CLUSTER_008 | server-022 | |
CONN_001 | connection-001 | |
CONN_002 | connection-002 | |
CONN_003 | connection-003 | |
CONSUMER_001 | consumer-001 | |
CONSUMER_002 | consumer-002 | |
CONSUMER_003 | consumer-003 | |
CONSUMER_004 | consumer-004 | |
CONSUMER_005 | consumer-005 | |
CONSUMER_006 | consumer-006 | |
CONSUMER_007 | consumer-007 | |
CONSUMER_008 | consumer-008 | |
CONSUMER_009 | consumer-009 | |
CONSUMER_010 | consumer-010 | |
CONSUMER_011 | consumer-011 | |
CONSUMER_012 | consumer-012 | |
JETSTREAM_001 | stream-002 | |
JETSTREAM_002 | stream-003 | |
JETSTREAM_003 | stream-004 | |
JETSTREAM_004 | server-062 | |
JETSTREAM_005 | server-025 | |
JETSTREAM_006 | system-003 | |
JETSTREAM_007 | retired | the check no longer exists; stored findings are dropped |
JETSTREAM_008 | stream-007 | |
JETSTREAM_009 | server-028 | |
JETSTREAM_010 | stream-005 | |
JETSTREAM_011 | stream-006 | |
JETSTREAM_013 | stream-008 | |
JETSTREAM_014 | stream-009 | |
JETSTREAM_015 | stream-010 | |
JETSTREAM_017 | stream-011 | |
JETSTREAM_018 | stream-012 | |
JETSTREAM_019 | stream-013 | |
JETSTREAM_020 | stream-014 | |
JETSTREAM_021 | stream-015 | |
JETSTREAM_022 | stream-016 | |
JETSTREAM_023 | stream-017 | |
JETSTREAM_024 | stream-018 | |
JETSTREAM_025 | stream-019 | |
LEAF_001 | leafnode-001 | |
LEAF_002 | leafnode-002 | |
LEAF_003 | leafnode-003 | |
META_001 | server-058 | |
META_002 | system-011 | |
META_003 | system-004 | |
META_004 | server-063 | |
META_005 | system-006 | |
META_006 | system-007 | |
META_007 | system-008 | |
META_008 | server-030 | |
META_009 | system-009 | |
OPT_ACCT_001 | account-007 | |
OPT_ACCT_002 | account-008 | |
OPT_BALANCE_001 | server-031 | |
OPT_BALANCE_002 | server-032 | |
OPT_BALANCE_003 | server-033 | |
OPT_BALANCE_004 | server-034 | |
OPT_BALANCE_005 | server-035 | |
OPT_BALANCE_006 | server-036 | |
OPT_BALANCE_007 | stream-020 | |
OPT_BALANCE_008 | server-037 | |
OPT_COST_001 | stream-021 | |
OPT_COST_002 | stream-022 | |
OPT_COST_003 | server-038 | |
OPT_COST_004 | stream-023 | |
OPT_COST_005 | server-039 | |
OPT_IDLE_001 | server-040 | |
OPT_IDLE_002 | stream-024 | |
OPT_IDLE_003 | consumer-013 | |
OPT_IDLE_004 | consumer-014 | |
OPT_IDLE_005 | account-009 | |
OPT_IDLE_006 | retired | the check no longer exists; stored findings are dropped |
OPT_IDLE_007 | connection-004 | |
OPT_PLACE_001 | account-011 | |
OPT_PLACE_002 | retired | the check no longer exists; stored findings are dropped |
OPT_PLACE_003 | account-012 | |
OPT_PLACE_004 | account-014 | findings not carried over |
OPT_SYS_001 | stream-025 | |
OPT_SYS_002 | consumer-016 | |
OPT_SYS_003 | consumer-017 | |
OPT_SYS_004 | consumer-018 | |
OPT_SYS_005 | server-041 | |
OPT_SYS_006 | leafnode-004 | |
OPT_SYS_007 | server-043 | |
OPT_SYS_008 | account-013 | |
OPT_SYS_009 | server-044 | |
OPT_SYS_010 | server-045 | |
OPT_SYS_011 | server-046 | |
OPT_SYS_012 | server-047 | |
OPT_SYS_013 | server-048 | |
OPT_SYS_014 | server-042 | |
OPT_SYS_015 | consumer-019 | |
OPT_SYS_016 | stream-026 | |
OPT_SYS_017 | server-049 | retired after the rename; stored findings kept |
OPT_SYS_018 | stream-027 | |
OPT_SYS_019 | stream-028 | |
OPT_SYS_020 | stream-029 | |
OPT_SYS_021 | stream-030 | |
OPT_SYS_022 | server-050 | |
OPT_SYS_023 | server-051 | |
OPT_SYS_024 | stream-031 | |
OPT_SYS_025 | stream-032 | |
OPT_SYS_026 | server-052 | |
SERVER_001 | server-001 | |
SERVER_002 | server-002 | |
SERVER_003 | server-003 | |
SERVER_004 | server-004 | |
SERVER_005 | server-005 | |
SERVER_006 | retired | the check no longer exists; stored findings are dropped |
SERVER_007 | server-007 | |
SERVER_008 | server-008 | |
SERVER_009 | retired | the check no longer exists; stored findings are dropped |
SERVER_010 | server-010 | |
SERVER_011 | server-011 | |
SERVER_012 | server-012 | |
SERVER_013 | server-013 | |
SERVER_014 | server-014 | |
SERVER_015 | server-015 | |
SERVER_016 | server-016 | |
SERVER_017 | retired | the check no longer exists; stored findings are dropped |
SERVER_018 | server-018 | |
SERVER_019 | server-019 | |
SERVICE_001 | service-001 | |
SERVICE_002 | service-002 | |
USER_001 | user-001 | |
USER_002 | user-002 |
Data
Eighteen migrations run on first start: seven SQL migrations that add columns or
a table, and eleven Go migrations that rewrite stored check codes, unwrap JSON
columns, rename the findings table, backfill a table, add a column to the
findings table, retire a check's macro, rewrite enum spellings, drop repeated
account identity rows and drop the audit schema. Five of them change what an
existing query returns, and all five are worth a look if you have saved SQL or
Grafana panels.
hx.check_results is now hx.check_findings
Every row in the table is an entity that tripped a check. The macros emit only what fails, so there is no pass row and no severity meaning "ok", and the rest of the domain already said finding. The table now matches.
The rename is a catalog operation and copies no rows, but no view is left behind
under the old name, so a query naming hx.check_results needs updating. Find
them with:
grep -rn 'check_results' /path/to/your/queries /path/to/grafana/dashboards
The code column is rewritten to the new spelling at the same time, so a query
filtering WHERE code = 'SERVER_001' returns no rows rather than an error.
Worth updating in the same pass.
Check macros moved from audit to checks and contexts
The macros behind the checks lived in a schema named audit. They now live in
two schemas named for what they hold, and a migration drops audit:
| v0.1.10 | v1.2.0 |
|---|---|
audit.check_accounts_001(...) | checks.account_001(...) |
audit.subjects_overlap(...) and the other helpers | checks.subjects_overlap(...) |
audit.context_stream_raft_peers(...) | contexts.stream_raft_peers(...) |
A check macro is the check's code with hyphens turned to underscores, so the
Full code mapping gives the new name. A threshold
parameter the check renamed takes its new name, per
Some thresholds take typed values. A query calling an audit. macro fails with a catalog error rather
than returning nothing. Find them with:
grep -rn 'audit\.' /path/to/your/queries /path/to/grafana/dashboards
The discovery endpoints list the new schemas. A client that passes
{"schema": "audit"} to $INS.db.macros or runs
insights db macros --schema audit gets an empty list; ask for checks or
contexts instead.
JSON columns hold documents rather than encoded strings
A JSON column handed to the appender as an already-encoded string held that
string encoded a second time: the JSON string "{\"k\":\"v\"}" rather than the
object. json_type() reported VARCHAR and every json_extract path on it
returned NULL. Two consumer enums that NATS Server renders as JSON literals kept
their quotes the same way, so priority_policy never equalled pinned_client.
The migration unwraps each affected column in place:
| Table | Columns |
|---|---|
hx.server_ident | metadata |
hx.stream_opts | metadata, mirror_subject_transforms |
hx.stream_source_opts | subject_transforms |
hx.consumer_opts | metadata, backoff, priority_policy, replay_policy |
These columns now behave the way their documentation always described, so a
plain json_extract(metadata, '$.key') works. If you had written a workaround,
usually a nested extract or a comparison against a quoted literal like
priority_policy = '"pinned_client"', replace it with the direct form.
Enum columns hold the NATS API spelling
The indexer stored stream and consumer enums in Go's display spelling, which is not what the NATS API sends, and several checks compared against the API spelling and never matched. It now stores the API spelling, and a migration rewrites the recognized values already stored. Empty, NULL and unrecognized values are left as they are.
| Columns | Was | Now |
|---|---|---|
hx.stream_ident.storage_type, hx.consumer_opts.storage_type | File, Memory | file, memory |
hx.stream_opts.retention_policy | Limits, Interest, WorkQueue | limits, interest, workqueue |
hx.stream_opts.discard_policy | DiscardOld, DiscardNew | old, new |
hx.stream_opts.store_compression | None, S2 | none, s2 |
hx.stream_opts.persist_mode | Default, Async | default, async |
hx.consumer_opts.replay_policy, hx.consumer_opts.priority_policy | quoted, such as "instant" | unquoted |
A saved query such as WHERE storage_type = 'File' returns no rows after the
upgrade rather than an error; switch it to the lowercase value. Newly indexed
rows also record the API's defaults where the server omits the field, so
persist_mode reads default and priority_policy reads none.
hx.consumer_opts.storage_type is still the parent stream's storage; the
consumer page shows the consumer's effective storage separately.
Raft state is uppercase
hx.raft_groups.state holds the value NATS Server reports: LEADER,
FOLLOWER, CANDIDATE, CLOSED. The schema documentation and several checks
had described it as Leader and Follower, which matched nothing. They now
agree with what is stored, so the checks reading raft state report correctly.
The stored data is unchanged. A query of your own comparing this column against a capitalized value was returning no rows before and still does; switch it to uppercase.
Repeated account identity rows are removed
hx.account_ident holds one row per account identity. A database indexed before
that rule was enforced carries copies, and retention never removed them while the
account stayed active. Every join on pk multiplied an account's rows by the
number of copies it had, so any account total built that way was inflated.
The migration keeps the first observation of each (pk, name) and deletes the
rest. A query of your own that joins hx.account_ident will return smaller
numbers afterwards; those are the correct ones. A saved account panel whose
values drop on upgrade is showing this, not a loss of data.
New columns
All are additive with defaults, so nothing existing changes behavior. Each one answers a question that previously had no column.
| Table | Column | What it records |
|---|---|---|
hx.epochs | servers_expected, servers_observed, partial_endpoints | How much of the fleet a scrape reached. NULL means unknown, which should not be read as complete. |
hx.server_opts | config_digest | Hash of the running configuration, which separates a restart with the same config from a reconfiguration. '' means unreported, as with NATS Server before 2.11. |
hx.server_opts | route_pool_size | Route connection pool size. 0 means unreported. |
hx.server_stats | statsz_fallback | True when the row came from STATSZ because the server's varz was stalled. Such a row carries only server-level stats, so leafs, remotes and gateways are NULL rather than zero. |
hx.server_health_stats | error_accounts, error_streams, error_consumers | Which assets a healthz error named. |
hx.raft_group_stats | wal_error | The write-ahead log error raftz reports for a group. '' means none. |
hx.check_findings | observed_epoch | The last epoch that confirmed the finding. NULL means the row's own epoch; an earlier value marks an account-005 or service-002 finding held through incomplete subscription data. |
hx.account_js_tier_opts | new table | One row per JetStream limit set an account JWT declares, keyed by replication tier. Tier '' is the untiered block. Backfilled from stored claims. |
If you aggregate over hx.server_stats, either exclude statsz_fallback rows
or treat their NULL columns as missing, so a fallback row does not read as a
server with zero leafnodes.
Retention
db.retention.interval is a minimum rather than a fixed period. A sweep runs on
the indexer right after the first epoch committed past the interval, and never
at the same time as a commit. Nothing to change; sweep timestamps are no longer
evenly spaced.
Interfaces
Subjects name the system or node they address
With several systems on one node, every $INS subject carries the id of the
system or node it addresses. $INS.ping stays flat, since discovery is the one
case where every instance should answer on the same subject.
| Was | Now |
|---|---|
$INS.db.* (query, query.stream, explain, schemas, tables, columns, macros) | $INS.sys.<system>.db.* |
$INS.db.backup | $INS.sys.<system>.db.backup.stream |
$INS.checks.* | $INS.sys.<system>.checks.* |
$INS.ops.info, ops.sizing, ops.memory, ops.storage, ops.scraper.toggle, ops.scraper.trigger, ops.diagnostics.* | $INS.sys.<system>.ops.* |
$INS.ops.scraper | $INS.sys.<system>.ops.scraper.status |
$INS.ops.events.history | $INS.sys.<system>.ops.disconnect.history |
$INS.ops.pprof, ops.nats.info, ops.version, ops.version.check | $INS.node.<node>.ops.* |
$INS.epoch.committed | $INS.sys.<system>.feed.epoch |
$INS.events.disconnect | $INS.sys.<system>.feed.disconnect |
$INS.ops.memory.profile | $INS.sys.<system>.feed.memory |
A useful side effect is that several Insights deployments can share one NATS account: each has its own subject space, so their streams and endpoints cannot be mistaken for one another.
The CLI and web tier discover an id before they call, so they need nothing from
you. A client you wrote against the flat subjects needs the id added.
insights system list and insights node list show what is reachable. See the
API reference.
A named sink stream needs a new name
Scrapes are published under $INS.sys.<system>.scrape.>. v0.1.10 created its
sink stream capturing <stream>.>, and a stream that already exists is used as
found, never edited. With the default name nothing collides: 1.2.0 creates a
fresh scrape_<system> stream and the v0.1.10 scrape stream is left unused.
With a name set through sink.stream, 1.2.0 finds the v0.1.10 stream under that
name, the scraper refuses its subject, and nothing new is indexed. The log shows
it once at startup:
level=ERROR msg="scraper runner error" ... error="stream \"<stream>\" should have subject \"$INS.sys.<system>.scrape.>\""
Check before you restart:
grep -n 'stream:' config.yaml # under sink:
env | grep INSIGHTS_SINK_STREAM
If either names a stream, remove the setting (1.2.0 then uses
scrape_<system>) or change it to a name no stream has yet. The indexer tracks
its position per stream name, so a new name starts at the beginning of the new
stream. Once epochs are arriving, delete the old stream with
nats stream rm <stream>, and the unused scrape stream too on a node that ran
with the default.
Sizing reports memory in GiB
The ops.sizing reply renames total_gb, query_gb, write_gb and
index_gb to total_gib, query_gib, write_gib and index_gib. The values
were already whole GiB. insights ops sizing prints its recommendation as
--db.memory-limit=<n>GiB, where it used to print GB and so applied about 7%
less than it recommended.
The HTTP Gateway names the system in the path
POST /sys/<system>/db/query # was POST /db/query
GET /systems # the systems this node serves
Every /db/* route moves the same way: columns, explain, macros, query,
schemas and tables. The path token is the same id as the subject token. There
is no default system and no cached topology, so a request is always answered by
the system it named.
MCP tools take a system argument
Every Insights MCP tool except systems requires a system argument, and a call
without one is refused before it runs. An agent working interactively resolves
it by calling systems first; a saved prompt or script that calls tools directly
needs the id added.
Alert payloads
entity_name is an annotation rather than a label, so a name that resolves a
few epochs after a finding first fires no longer changes the Alertmanager
fingerprint and fires a stable alert again. Routes, inhibitions and silences that
match entity_name stop matching; match entity_key or entity_pk, which are
still labels. Every alert and the payload's group labels carry system.
Alertmanager endpoints now receive every standing finding as firing once a
minute, with endsAt four minutes out, so Alertmanager resolves an alert on its
own when Insights stops sending it. Delivery to an endpoint is at-least-once: a
failed delivery is retried until it succeeds, so a receiver can occasionally see
a transition twice.
Every check's description and remediation annotation is reworded in this
release to state what the check's SQL applies rather than a default an operator
may have changed. Both are annotations rather than labels, so no fingerprint
moves and no alert re-fires, but a receiver that templates or greps that text
sees different words.
Prometheus series carry a system label
Every metric family is per-system, since one node can own several systems with their own catalog, indexer, scraper and epoch clock, and without the label their samples would collide into one series.
On a single-system node the label has one value, so a sum() gives the same
number as before. topk and label joins behave differently, so add
by (system) where a panel is meant to be per-system.
New series: insights_epoch_servers_expected, insights_epoch_servers_observed,
insights_epoch_partial_endpoints, and insights_metrics_source_up on an
aggregating endpoint, where every series also gains a source label. See
Metrics and Grafana.
Saved search and filter expressions
List pages and the search box share one parser, which changes two things a
saved expression or bookmarked filter can depend on. and, or and not are
operators in any case, so a bare lowercase value spelled that way needs quoting.
check: takes the new codes, so check:SERVER_003 matches nothing; write
check:server-003.
Web URLs include the system
Every page lives under /systems/<id>/…. On a node serving one system, old
paths redirect into it and preserve the query string, so existing bookmarks and
deep links keep working. On a node serving several, an old path opens the system
list. Tooling that constructs Insights URLs is worth updating to the new form.
Operations
The Insights image has no shell
The Linux images on registry.synadia.io (insights, insights-licensed and
the -collector tag) are built on distroless static, which carries CA
certificates, time zone data and a handful of OS packages, and no shell or
package manager, so scanners have far less to report against them. The Insights
image still runs as UID 1000 with /var/lib/insights owned by that UID, as in
v0.1.10, so a data volume that worked before needs nothing. The collector image
is new in this release, built the same way, and has nothing to migrate.
What changes is anything that runs a command inside the container: docker exec <container> sh, a Kubernetes exec probe calling sh -c, or an init container
that reuses the Insights image to chown a volume. Point probes at
GET /healthz instead, and use a small general-purpose image for init steps.
ops backup builds the file on your machine
Saving is insights ops backup save, still the default subcommand, so an
existing invocation keeps working. The copy streams table by table and is
assembled locally, so the disk it needs is yours rather than the server's, and a
backup no longer competes for space on the instance. It runs at the same
Insights version as the server, and a version difference is reported up front
rather than producing a file you cannot restore.
Three things changed with it:
--output -is no longer available. The copy writes into a seekable DuckDB file, so it cannot be piped until complete. A script doinginsights ops backup --output - | gzip > b.gzshould write the file and compress it afterwards.- The endpoint is
$INS.sys.<system>.db.backup.stream, in place of$INS.db.backup. - The
backup:config section is gone, since backups are no longer uploaded to an object store.
The command confirms the size at a terminal, so add --force for anything
running from cron or CI.
insights ops backup save --force --output /backups/insights-$(date +%F).db
insights ops backup view <file> serves the web UI against a backup, opened
read-only, which is a convenient way to check one.
Run under a restart policy
A DuckDB recovery attempt that cannot return within 30 seconds now exits so a
supervisor can restart the process, rather than leaving listeners serving a
database that cannot answer. Under a Kubernetes Deployment, a systemd unit with
Restart=, or --restart on a container, this recovers on its own. Without
one, the process stays down where it would previously have stayed up in a state
it could not serve from.
Naming the target makes client commands faster
With nothing naming a target, a client subcommand waits out the two-second
$INS.ping discovery window so every responder has a chance to reply. Set
--system (or INSIGHTS_SYSTEM, or system.id in a shared config file) for
repeated invocations. A named target skips discovery, which also means silence
from it is reported as the error it is.
Discovery needs permission to publish $INS.ping and receive replies; a named
call needs only its endpoint permissions.
Notification endpoint state left JetStream
Endpoint config is no longer mirrored into a JetStream KV bucket, and the
delivery log moved to a stream named for the node
(webhook-deliveries_<nodeID>). Nothing removes what v0.1.10 created: the
webhook-endpoints KV bucket and the webhook-deliveries stream stay behind in
the sink's JetStream, unused. Remove them once the node is on 1.2.0:
nats kv del webhook-endpoints
nats stream rm webhook-deliveries
If your NATS permissions granted either one explicitly, that grant is unused too.
Agent skill downloads moved
The info dialog no longer builds and serves the per-agent skill bundles. Install them from synadia-io/insights, which is where the plugin marketplace and Gemini extension already lived.
After you upgrade
Confirm your checks resolve. Startup would have reported an unknown code, so this is mostly about a check you meant to disable and spelled correctly for the wrong entity.
insights config check
insights checks list
Give the new critical severities a day. Five consumer checks moved from
warning to critical, so a pager routed on critical may see traffic it did not
before. server-065 is also new and reports a server with no varz reply in an
epoch where a peer still routes to it.
Check that epochs are complete. The new completeness columns show whether a scrape reached the whole fleet, which is useful to establish as a baseline.
SELECT epoch, servers_expected, servers_observed, partial_endpoints
FROM hx.epochs
WHERE servers_observed < servers_expected
ORDER BY epoch DESC LIMIT 20;
Going back
The database moves forward on first start: the findings table is renamed and
rewritten, JSON columns are unwrapped, enum values are rewritten, repeated
account identity rows are deleted, the audit schema is dropped, and columns and a table are added. A v0.1.10 binary will not find hx.check_results in a
v1.2.0 catalog.
Going back means restoring the backup from Before you upgrade into a fresh data directory, pointing the old binary at it, and letting it scrape forward again. Epochs indexed since the upgrade are not carried back. Keep the pre-upgrade config file alongside the backup, since the new check codes are not valid on v0.1.10 either.