# v1.3.0

This release is about getting findings to the people on call. Insights now delivers to Datadog On-Call, Splunk On-Call and ServiceNow alongside webhook and Alertmanager, and every endpoint can filter by severity, carry your own labels and annotations, and read its secrets from the environment. Hub nodes take on remote systems as they first report and deliver notifications for them. Lists of systems and nodes are paged, so they work at any number of systems, and checks and pages read the live fleet rather than all of retention. It adds six checks, gives each finding its own page, makes the UI say when data is missing instead of reading as healthy, and fixes several checks that misread what they were given. Configuration validation is stricter: read [Considerations](#considerations) before upgrading.

## Features

### Notifications

* **Datadog On-Call:** A `datadog` endpoint posts each alert to the Datadog Events API, which pages the On-Call team named by the `oncall_team` annotation and resolves the page when the finding clears. Set the team per check, severity or system with label rules. Info alerts never page. See the [Datadog guide](/insights/1.3/guides/datadog.md).

  ```
  notifications:

    datadog:

      - name: "Datadog"

        api-key: "${DD_API_KEY}"

        site: "datadoghq.com"

        subscriptions: ["*"]

        severities: [warning, critical]

        annotations:

          oncall_team: "nats-platform"
  ```

* **Splunk On-Call:** A `splunk-oncall` endpoint sends one event per alert through the REST endpoint integration. Events are keyed on the alert's fingerprint, so a resolve recovers the incident its fire opened, and the incident links back to the finding in Insights. See the [Splunk On-Call guide](/insights/1.3/guides/splunk-oncall.md).

  ```
  notifications:

    splunk-oncall:

      - name: "Splunk On-Call"

        api-key: "${SPLUNK_ONCALL_KEY}"

        routing-key: "nats-platform"

        subscriptions: ["*"]
  ```

* **ServiceNow:** A `servicenow` endpoint posts the webhook payload to a Scripted REST API you build in your instance, and re-sends every active alert each minute as Alertmanager endpoints do. Your script decides what an alert becomes, so no Event Management or ITOM add-on is needed. Authentication is required: `apikey` (sent as `x-sn-apikey`) or `basic`. The [ServiceNow guide](/insights/1.3/guides/servicenow.md) states what the script must do and ships an example that opens, refreshes and closes incidents.

* **Your own labels and annotations on every alert:** Rules under `notifications.labels` add labels and annotations to alerts that match a check pattern, severity, category, scope, system or entity type, and an endpoint's own `labels` and `annotations` apply last. Annotation values are templates over the finding, so a runbook or dashboard link can name the check or system. The endpoint page in the UI lists the rules that apply to it, in order, and marks any that match nothing it delivers.

  ```
  notifications:

    labels:

      - match:

          checks: [stream-*]

          severity: [critical]

        labels: {team: data-platform}

        annotations: {runbook: "https://wiki/insights/{{ .Code }}"}
  ```

* **Severity filter per endpoint:** `severities` limits an endpoint to `info`, `warning` or `critical` findings. A finding that drops out of the list is delivered as a resolve, so a critical-only endpoint does not keep an alert open after it falls to warning.

* **Route by system labels:** An endpoint's `systems`, and a label rule's `match.systems`, now take selectors over a system's labels as well as ids. A map must match on every key, any one entry in the list selects a system, and values accept `*` as a wildcard. A plain id still works as before. An id that names no system on the node now logs a warning instead of failing startup. A label rule that selects systems by label may set annotations, not labels. See [Scoping to systems](/insights/1.3/guides/notifications.md#scoping-to-systems).

  ```
  notifications:

    alertmanager:

      - name: "US prod"

        url: "http://alertmanager:9093/api/v2/alerts"

        subscriptions: ["*"]

        systems:

          - { env: prod, region: "us-*" }

          - west
  ```

* **Secrets from environment variables:** Endpoint `url`, `auth-user`, `auth-token` and the new types' keys accept `${NAME}`, read from the environment at startup. A config file can be checked in or templated (the Helm chart's `config:`, for example) with secrets supplied from a Kubernetes Secret. An unset variable fails startup and `insights config check`, naming the endpoint; disabled endpoints are exempt. The UI and logs show the URL as written, never the resolved value.

* **Custom request headers:** `headers` on a `webhook` or `alertmanager` endpoint adds headers to every delivery, for a receiver behind an API gateway or a multi-tenant Alertmanager that reads `X-Scope-OrgID`. Values expand `${NAME}` from the environment, and the UI lists only the header names. A header that delivery or the `auth-type` already sets, such as `Content-Type`, fails startup. See [Custom headers](/insights/1.3/guides/notifications.md#custom-headers).

  ```
  notifications:

    alertmanager:

      - name: "Mimir"

        url: "https://mimir.example.com/alertmanager/api/v2/alerts"

        headers:

          X-Scope-OrgID: "nats-platform"

        subscriptions: ["*"]
  ```

* **Notifications for remote systems from a hub node:** A hub node with a `remotes:` block delivers the notifications of the full Insights nodes at remote systems, taking on each one as it first hears it, filtered by `accept` selectors over its labels, with no restart. A system taken on stays with the node until it is removed, and raises `system-012` when it goes silent. Each one is bound to one node in a `remotes` key-value bucket, so several hub nodes never deliver it twice; `insights remotes list` and `remove` show and remove the bindings, and removing a system resolves its alerts, even when its node is stopped at the time; its entry stays `removing` until every receiver that keeps a record of open alerts has accepted the resolves. Each hub node holds a lease, and when one expires the other nodes whose `accept` matches take over its systems within 45 seconds, dark ones included. Before a planned restart, `insights node lameduck`, or `SIGUSR2` to the process, hands a node's relay systems to other nodes, each with a gap of usually seconds and no alert lost or sent twice; `insights remotes move` and `rebalance` move them when an operator asks, and `insights node remove` retires a node. See [Notifications from the hub](/insights/1.3/guides/federated-deployment.md#notifications-from-the-hub).

  ```
  remotes:

    accept:

      - { env: prod }
  ```

* **Collector-fed systems register with a hub node:** A hub node with a `remotes:` block takes on a collector it hears, selected by `accept` over the collector's labels, creates the system's catalog and indexes it while it runs, and serves its pages and API under the collector's display name without a restart. A restarted node picks its collector-fed systems back up from their latest epoch, and `insights remotes remove` stops indexing one and deletes its catalog. `remotes.overrides` sets catalog retention, `db` sizing, `check-thresholds` and `disabled-checks` for the group of systems each entry selects, and a `systems:` entry without a `scrape:` block takes on one system by id with settings of its own, applied after the overrides; a change takes effect when the node restarts. See [Hub node config](/insights/1.3/guides/federated-deployment.md#hub-node-config).

  ```
  remotes:

    accept:

      - { env: prod }

    overrides:

      - systems: [{ region: us-west }]

        retention: 720h

        db: { memory-limit: 4GiB }
  ```

* **Collectors no hub has taken on:** Nothing indexes a collector whose labels match no hub's `accept`, so its system would go unwatched without a sign. `insights remotes list` shows such a collector as `unbound`, with the node it runs on and the labels it reports. Once it has been unbound for `system-012`'s `max_age`, one hub raises `system-012` for its system, so it pages once however many hubs run. A hub learns of a collector from its heartbeat, which a collector on 1.2 does not send, so upgrade collectors before relying on this.

* **A warning when a relayed system also delivers:** A hub warns when a remote system it relays notifications for also delivers them from its own node, which sends every alert twice to a receiver both reach. Remove the notification endpoints on the remote system's node.

### Collection

* **Locate addresses from a local MaxMind database:** The `mmdb` GeoIP provider reads a GeoLite2-City file, or one built for your own ranges, with no API key and no network. It is asked about every address, private ones included, so a private network or an air-gapped deployment can now be drawn on the map. A file replaced on disk, as `geoipupdate` does, is read on the next lookup.

  ```
  indexer:

    ip:

      provider: mmdb

      db: /var/lib/GeoIP/GeoLite2-City.mmdb
  ```

* **Scrape streams without consumer detail:** On a fleet with many consumers, consumer detail is most of each `jsz` reply. `scraper.endpoints.jsz.consumers: false` drops it while streams and accounts are still scraped, and consumer checks read "not evaluated" instead of passing for want of data. The per-endpoint `disabled` and `frequency` settings are now documented, with flags and environment variables, for every endpoint except `varz`. A page title, tab or count fed by an endpoint that is off (`jsz`, consumer detail, `connz`, `leafz`, `gatewayz` or `accstatz`) is marked not collected, naming the endpoint, the setting that turns it back on and when it went off, and its counts read n/a instead of 0.

  ```
  scraper:

    endpoints:

      jsz:

        consumers: false

      subsz:

        frequency: 3
  ```

* **Cap the embedded sink's storage:** `sink.max-store` sets the JetStream file storage limit of the embedded NATS server. Without it the server sizes its store at 75% of the disk free at startup, which is wrong on a shared or small volume.

  ```
  insights serve --sink.max-store 50GiB
  ```

* **Mask monitoring data before it leaves a remote system:** A node that scrapes can pseudonymize names and subjects, and redact free text, credentials and addresses, before it publishes anything. On a collector the data reaches the hub already masked, and the key that reverses it stays with the collector. A name always gets the same pseudonym, so history, pages and checks work as before. `insights mask keygen` creates the key and `insights mask reveal` turns a pseudonym back into its name. See [Masking](/insights/1.3/guides/masking.md).

  ```
  mask:

    key-file: /etc/insights/mask.key

    identifiers: pseudonymize

    text: redact

    credentials: redact

    network: redact
  ```

### Checks

* **Six new checks:** Each is on by default and takes its thresholds under `check-thresholds` like any other. See the checks reference.

  * `account-015` (Account JWT Expiring or Expired) warns `lookahead` before an account JWT expires, and once it has. An expiration disconnects every client in the account and stops its JetStream assets, and nothing in the configuration marks its approach.
  * `connection-005` (Connection Subscription Growth) reports a connection open for the whole lookback whose subscription count grew by more than `max_growth`, the usual sign of a client that subscribes and never unsubscribes.
  * `connection-006` (Connection Subscription Count High) reports a connection holding more than `max_subs` subscriptions where neither its account nor its server sets a subscription limit.
  * `leafnode-005` (Leafnode Link Flapping) reports a leaf link that keeps reconnecting, which every scrape shows as connected.
  * `stream-035` (WorkQueue Orphaned Head Message) reports a WorkQueue stream whose first message every consumer has moved past without removing it, which pins the stream's first sequence and holds its quota.
  * `system-012` (System Not Reporting) fires on the node that indexes a system when its scraper cannot reach the NATS system, the license has stopped scraping, or no epoch has committed for `max_age`. It turns critical after `critical_age` and resolves only when an epoch commits again. Its `detail` names the cause, such as the scrape error, and reaches webhook and Alertmanager receivers as an annotation. While collection is failing, every page's toolbar names the reason in a chip, such as `Can't collect: DNS lookup failed`, with the full error on click, and the Systems tab marks the system `collection failing`.

  ```
  check-thresholds:

    account-015:

      lookahead: 336h

    system-012:

      max_age: 30m
  ```

### Systems

* **Display names for systems:** `system.name` (or `name` on a `systems:` entry) gives a system a name shown beside its id on the Systems tab and in `insights system list`. It is declared on the node that scrapes the system. A top-level `system.metadata` now also acts as the default labels for every system, which each entry, or a collector's own labels, override per key.

  ```
  system:

    id: core-prod

    name: "Core (prod)"
  ```

### Web UI

* **A page for each finding:** Each finding has its own page under its system, `/systems/<system>/findings/<code>/<entity_type>/<entity_pk>[/<entity_key>]`, saying whether it is still firing, since when, and showing its evidence. An alert's `generatorURL` now opens that page rather than the entity's, when `web.external-url` is set on the node delivering notifications.

* **Findings as each check's history:** An entity's findings panel lists each check with the changes it went through, and a row opens to its evidence, so a flapping check reads as one line. A check that cleared while its entity was not observed no longer reads as firing.

* **Operations leads with what needs attention:** A system's Operations page opens on Epochs, Store and Memory, each saying whether it is healthy by rules the page states, and on the first that warns. Epochs counts the epochs committed over the page's time window and those complete, with every server's data in them, and draws them over time: selecting a stretch lists the epochs it is missing and, for each, which servers were not found or sent no data. Memory is the system's DuckDB against its limit, and a table in Store lists its columns in place.

* **A page for each node:** Each row under Nodes opens the node's own page: its CPU as a share of the cores it can use, its RSS split into DuckDB (every catalog it holds), the Go runtime and the rest, its largest catalogs, its Go runtime and embedded NATS server, its Prometheus address, buttons that download a goroutine or heap profile of it, and the links configured in `web.links`.

* **What clients subscribe to:** A connection page has a Subscriptions tab listing each subscription. Account, server and user pages have a Subjects tab that rolls subscriptions up by account and the first two subject tokens, counting the connections holding them and the subscriptions in a queue group or that have never received a message.

* **The web UI follows the fleet:** `insights web` and a hub node's web UI list each system from the heartbeats and epoch announcements it already sends, within seconds of its first report and without a restart. They ask a system about itself when they first hear it and again only when its name or labels change, no longer ask the whole deployment, and build a system's pages only when someone opens it. Their Systems list reads each row from the system's latest epoch announcement rather than asking its catalog, and the Systems and Nodes lists show 20 rows a page, so a refresh costs the same at any number of systems.

* **Any web node serves any page:** Several hub nodes and web tiers can serve the web UI behind one load balancer or hostname. A page about one node's state, such as Notifications, asks that node rather than the one rendering it, so it reads the same from every web node, and offers a Node selector where more than one node delivers for the system. Give every web node the same `web.session-seed`: a node that cannot decode a session cookie another node signed starts a new session.

### API

* **Finding context over NATS:** `$INS.checks.context` returns one finding's context panel, the evidence the web UI draws beside it, so MCP and API clients can explain a finding without the browser. `$INS.checks.info` now also names a check's trigger and headline columns.

* **Connection events with who they were:** `feed.conn` publishes every client connect, disconnect and authentication error with its server, account and client, so a live view can show who arrived or left. It replaces `feed.disconnect` (see [Considerations](#considerations)).

* **What is firing now, over NATS:** `findings.summary` answers how many findings are firing, by severity and by check, and `findings.active` streams the firing findings themselves in the shape of the finding feed. A reader subscribes to the feed first, reads `findings.active`, and applies what the feed delivered meanwhile, so it starts from the current state without missing a change. Feed messages also carry the `system`, a `detail` for checks the node evaluates itself, and the finding's page as `url`. See [Finding feed on NATS](/insights/1.3/guides/notifications.md#finding-feed-on-nats).

  ```
  nats req '$INS.sys.prod.findings.summary' ''
  ```

* **Ask about one system or node:** `$INS.sys.<id>.ping` is answered only by the nodes holding that system, with that system alone, and `$INS.node.<id>.ping` by that node, with its identity. `feed.heartbeat` and `feed.epoch` carry a `rev` that changes when the sending node's id, version or labels change, or the system's name, labels or roles, so a reader that caches them asks again only when it changes. See Discovery.

* **Every system its own Prometheus target:** A hub node, a node with a `systems:` list, and a web tier list every system at `/metrics/systems` in Prometheus's HTTP service discovery format, and serve each one's metrics at `/metrics/systems/<id>`, asked of the node holding its catalog when Prometheus scrapes it. Each system has its own `up` and `sample_limit` and can be sharded with `hashmod`, and `insights_fleet_systems` counts the systems by their scrape state, `silent` included. A remote system's target carries its node's process metrics too. A node still learning the fleet answers the list with 503, so Prometheus keeps its targets, and the hub nodes can sit behind one name such as a load balancer. See Every system as its own target.

  ```
  - job_name: insights

    http_sd_configs:

      - url: http://hub-1:9091/metrics/systems
  ```

* **One system's metrics on its own subject:** `$INS.sys.<id>.ops.metrics` answers one system's Prometheus metrics from the node holding its catalog, and `$INS.node.<id>.ops.metrics` answers only the node's own process metrics to a request with the `Insights-Metrics-Scope: node` header. A hub node holding many catalogs no longer outgrows NATS's 1 MiB message limit and reads as down to the aggregating endpoint. See Canonical subject spaces.

* **A node's process and endpoints over NATS:** `$INS.node.<node>.ops.runtime` answers with the node's Go runtime, its resident memory split into DuckDB and the rest, and its largest catalogs. `$INS.node.<node>.ops.notifications` lists the notification endpoints the node delivers through for one system, and `.ops.notifications.test` sends a test alert through them. They back the node page and the Notifications page. See Runtime.

* **List a deployment a page at a time:** `$INS.systems` answers one page of the systems a deployment holds, or the nodes holding them, at most 500 rows with a cursor, a filter and a catalog-only switch. A hub node or web tier answers from the systems it follows, so no reply grows with the fleet, and answers `not_ready` for the minute or two after it starts while it learns them. A deployment with neither, such as a single node, answers no responders, and `$INS.ping` lists it instead. See Listing.

  ```
  nats req '$INS.systems' '{"catalog": true}'
  ```

* **A system's row on every epoch:** `feed.epoch` carries the system's Systems list row as of the epoch: its servers by version, its grade, and what is firing by severity with the newest start at each. The node holding the catalog sends it again after a minute without a commit, so a reader that starts late still learns of a catalog whose scrape side has gone; the repeat carries the epoch already sent and is marked `resent`. A catalog that cannot open, or has never committed, is announced too, with no epoch, and a catalog that cannot serve says why in `catalog_error`. See Epoch committed.

* **Each system's findings kept in a stream:** A node holding a system's catalog keeps a `findings_<id>` stream on its sink with the latest state of each finding, so a reader that missed changes, or a node that restarted, can recover what is firing. A resolved finding leaves it after `notifications.resolve-ttl` (default `24h`). Its per-message TTL needs nats-server 2.11 or later; on an older sink server the node logs that the stream is unavailable and runs without it.

### Installation

* **systemd units:** Each release publishes sandboxed units in [synadia-io/insights](https://github.com/synadia-io/insights/tree/main/systemd): `insights.service` and `insights-collector.service`. They run as an unprivileged `insights` user with no capabilities, a read-only view of the filesystem and a system call filter. They need systemd 247 or later for full isolation; an older systemd runs them with less. See [Linux with systemd](/insights/1.3/getting-started/installation.md#linux-with-systemd), which also covers the user, the config and drop-ins such as `MemoryMax=`.

### CLI

* **Listing pages through the deployment:** `insights system list`, `node list` and the `--system` fallback read `$INS.systems` where a hub node or web tier answers it, and ping the deployment only where none does, so they work at any number of systems. Both lists take `--filter`. A `node list` row counts the systems a node holds and names its roles, rather than listing every system, and a hub node holding none is listed from its lease. An ambiguous `--system` or `--node` lists the first 20 candidates and counts the rest. A hub node that has just started answers that it is still learning the fleet, and the CLI waits for it, for up to two and a half minutes, rather than ping the deployment.

* **Query a database file without a server:** `insights db query --file` runs SQL against a backup, or the `insights.db` of a stopped server's data directory, read-only and with no NATS connection. The file is never changed and no migration runs.

  ```
  insights db query --file insights-backup-prod-us.db --format text \

    "SELECT count(*) FROM hx.servers"
  ```

## Improvements

* **Work no longer grows with retention:** Check evaluation, page queries, a restart's cache load and the retention sweep read in proportion to the live fleet and the window asked for, not to how much history a catalog keeps. Checks that looked up connections, subscriptions, streams or account claims across every retained row now read the epoch's own. A page's time window bounds its history lookups, and the system grade reads the same rows at any retention. A restart loads its cache from the live tables and from counters each commit records, and a sweep finds orphaned subscriptions from what left the cache rather than from retained stats. A longer retention no longer makes each epoch's checks or each page load slower. A restart still reads the retained users, so that a returning user keeps its identity.

* **Epoch commits need less memory:** Every check ran as part of one statement in the epoch's commit, so the commit needed the memory of all checks at once, and when that passed `db.memory-limit` every epoch rolled back with no check to point at. Each check is now its own statement in the same transaction, so a commit needs the memory of its largest check, findings still land with their epoch, and an error names the check that failed.

* **Resident memory stays nearer `db.memory-limit`:** DuckDB's allocator kept freed memory resident, so the process ran well above the limit. It now returns freed memory sooner. `insights ops sizing` reads the memory limit of the container, or `MemoryMax` of a systemd unit, rather than the host's RAM, so it no longer recommends a limit the process cannot hold.

* **Lighter scrapes:** A server that stalls after answering discovery no longer holds up the scrape, a scrape no longer allocates 1 MiB for each reply, and pruning the scrape stream no longer reads every epoch it holds.

* **Collector-fed systems are read where the collector keeps them:** A hub node indexes a collector-fed system straight from the collector's `scrape_<id>` stream, across the leafnode through the system's JetStream domain, and no longer keeps a mirror of it. The second copy of every scrape on the hub NATS server, and its pruning, are gone. The collector's `sink.retention` bounds how long the hub node can be down without a gap, and how much history a new catalog can rebuild. A dropped leafnode is noticed within seconds. A system whose JetStream has no domain, reached through a subject mapping or account import, is read through the `api-prefix` of its `systems:` entry. See [Option 2: Collector at a remote system](/insights/1.3/guides/federated-deployment.md#option-2-collector-at-a-remote-system).

* **The identity check at start asks only its own ids:** A starting node asked every node in the deployment whether its node id or one of its systems was taken, and skipped the check once the replies overflowed it, as they do at about 100,000 nodes. It now asks only those ids, so a clash is refused at any fleet size and a start costs a reply only from a node sharing one.

* **Webhook payloads follow Alertmanager more closely:** Each webhook alert carries a `fingerprint` that matches what Alertmanager computes for the same labels, and `commonLabels` and `commonAnnotations` hold the pairs every alert in the delivery shares rather than a fixed set.

* **One delivery log for every node:** Each node kept its own delivery log, so an endpoint's history depended on which node answered, a node that only serves the web UI showed none, and a remote system that moved left its history split between nodes. Every node on a JetStream domain now writes one `webhook-deliveries` stream, and each entry names the node that delivered it, so an endpoint's log reads the same from any node. The new `notifications.delivery-history` sets how many deliveries it keeps per system per endpoint, for up to 7 days: 256 by default, where a fixed 200 was kept before. A failing receiver writes an entry every retry minute, so raise it to keep a longer outage. The last node to start sets it, so give every node the same value. See [Delivery log and NATS permissions](/insights/1.3/guides/notifications.md#delivery-log-and-nats-permissions).

  ```
  notifications:

    delivery-history: 1024
  ```

* **Per-server scrape results:** Insights records each server's result on each monitoring endpoint (complete, partial, failed, skipped or disabled) in `hx.endpoint_observations`, with the request options it was scraped with. A server that stalls while still answering discovery no longer counts as observed.

* **Delta checks read only the last hour:** `server-004`, `server-012`, `server-013`, `server-020`, `server-021`, `server-028`, `server-047`, `server-062` and `account-012` compared each server against its previous sample anywhere in retained history, so every epoch scanned all of that history. They now use the latest sample in the hour before the epoch, and a server returning from a longer absence is compared against nothing instead of reporting everything that changed while it was away. `server-008` still reports a restart across a collector outage, searching further back only when the hour before has no scrape.

* **server-028 fires when API errors rise:** nats-server leaves successful message gets (`STREAM.MSG.GET`) out of its API request total but counts failed ones, and lookups that find nothing hold some busy servers at a steady error rate above `error_percent`, so the check fired on every scrape with nothing to fix. It now also requires the rate to be more than `rise_pp` points above the server's own median over `baseline`, following the server across restarts. `baseline: 0` leaves only `error_percent`.

* **Hotspot thresholds are configurable:** `server-031` to `server-035` compared a server with the other servers in its cluster at a fixed multiple and a fixed floor. Each now takes a `multiplier` and a floor (`min_leaders`, `min_connections`, `min_subscriptions`, `min_replicas`, `min_storage`) in `check-thresholds`, defaulting to the values they had, and is evaluated at every epoch like any operational check.

* **Failed epoch commits are counted:** An epoch whose commit fails records none of its data or findings, and when it needed more than `db.memory-limit` every later epoch of that size fails too, leaving only an error log. `insights_epoch_failures_total` counts failed commits per system, with `reason="out_of_memory"` for the case raising the limit fixes. Its series start at zero, so `increase(insights_epoch_failures_total[15m]) > 0` fires on the first failure. See [Memory](/insights/1.3/guides/deployment.md#memory).

* **Go's memory is bounded in a container:** Insights ran with no Go soft memory limit, so the Go heap grew to twice its live size before each collection, on top of DuckDB's memory, and in a container sized close to the real need that growth got the process killed. Insights now sets the limit at startup from the cgroup v2 memory limit (a container's, or `MemoryMax` on a systemd unit): what is left once each system's DuckDB has its `db.memory-limit` and 2 GiB, less 320 MiB. Near it, the garbage collector runs more often instead of the heap growing. Without a cgroup v2 limit none is set, and when the container leaves Go less than 256 MiB none is set and the log says `Go memory limit not set` with the reason. The new `go.memory-limit` sets it yourself; the `GOMEMLIMIT` environment variable overrides both, and `GOMEMLIMIT=off` removes it. The collector sets no limit of its own: use `GOMEMLIMIT` there. `insights ops sizing` shows Go's live heap, the memory it holds and the limit, and warns when the limit is under twice the live heap. See [Memory](/insights/1.3/guides/deployment.md#memory).

  ```
  go:

    memory-limit: 2GiB
  ```

* **Process health metrics and the limits to read them against:** `/metrics` now exports the standard `go_*` and `process_*` series (resident memory, CPU, goroutines, garbage collection), `insights_duckdb_memory_limit_bytes` (each system's effective DuckDB `memory_limit`) and `insights_scrape_interval_seconds` (the cadence epochs should commit at), so a staleness alert holds at any scrape interval. See Metrics.

  ```
  (time() - insights_check_epoch_timestamp) / insights_scrape_interval_seconds > 3
  ```

* **Backups cap their memory:** `insights ops backup save` builds the copy in a DuckDB limited to `4GiB` by default, where it took DuckDB's default of 80% of the host's memory, enough to starve a server on the same host. `--memory-limit` sets it; the process uses somewhat more than the limit.

  ```
  insights ops backup save --memory-limit 8GiB
  ```

* **server-061 names the missing route:** Two servers of one cluster can lose the route between them while each still routes to the others, so clients split across the pair cannot exchange messages. The finding now names the peers a server has no route to in either direction.

* **The systems map keeps role colors:** With two or more systems located, every marker took its system's color, which hid whether it was a server, client, leaf node or gateway, and the palette repeated past ten systems. Markers keep their role colors, and each system is drawn as an outline with its name.

* **Notification endpoint pages:** An endpoint's page says whether it delivers for the system you are viewing, shows that system's delivery counts and log, and lists the alerts its receiver holds open, each linked to its page. The Checks column counts the checks a pattern matches, so `*` no longer reads as 1.

* **MCP protocol revision 2026-07-28:** The MCP endpoint serves clients on the 2026-07-28 revision, and clients on older revisions keep their sessions as before.

* **Quieter logs:** Lines that recur in normal operation, such as retry loops, per-epoch partial state and refreshes, log at Debug instead of Info or Warn, and a browser navigating away is no longer logged as an error. Warn is kept for what an operator should act on.

## Fixes

* **DuckDB reading zeros under a memory limit:** On x86-64 kernels without the fix for CVE-2026-97945, memory DuckDB's allocator released with `MADV_FREE` under a cgroup memory limit could come back as zeros, which DuckDB read without error. Insights now has the allocator release memory with `MADV_DONTNEED`, and refuses to open the database if that setting does not take. A `DUCKDB_JE_MALLOC_CONF` that sets `muzzy_decay_ms` still wins.

* **Indexing stopped silently after the sink stream was replaced:** The indexer resumed from a position in the scrape stream, so pointing it at a replaced stream, such as an external cluster taking over from the embedded sink, left it past the new stream's end, and it stopped indexing without an error. It now resumes from the latest epoch the database committed, and a consumer reset rebuilds from there as a restart does. This makes `indexer.stream-latest` and `indexer.stream-epoch` ignored (see [Considerations](#considerations)).

* **One entity shown as two, or rows no page could name:** When the indexer's cache had dropped a stream or consumer (one pruned while its servers were silent, or one a restart did not reload), it came back under a new key, and pages and checks split its history in two. An epoch whose commit failed, or a user or account returning after retention had deleted its identity, left later rows under keys no page could name. IP queues whose stream or consumer did not resolve shared one record per server. Each now keeps its own identity.

* **Optimizers left off after a failed check:** While an epoch's checks ran, Insights turned some DuckDB optimizers off for the whole database, which reached every concurrent query, and a check that failed at run time left them off until restart. Checks now run with them on.

* **Backup files that crash DuckDB:** Every backup file carried a view, `main.insights_backup_source`, over memory of the process that wrote it. Selecting from it in any later process crashed DuckDB. Backups no longer carry it, and startup drops it from a restored file.

* **Queries kept running after the viewer left:** A streamed query whose client went away ran to completion, holding a query slot and DuckDB's threads while other viewers waited. Leaving a page now cancels its queries.

* **Consumer checks skipped consumers on a standalone server:** A consumer on a server without clustering, created with the default replicas, was read as not its own leader, so every check that evaluates only leaders skipped it.

* **Throughput spikes on overview cards:** A stream or consumer with no leader at one epoch dropped out of that epoch's sum, which read as a dip and then a spike the size of its whole counter. Each is now rated on its own before the rates are summed.

* **Pages and findings that read the wall clock:** Once scrapes stopped for longer than a page's time window, a pinned page's reference overlay drew nothing, and a live findings request over the API returned none. Both now end at the latest epoch.

* **Pages left loading:** In Safari, a page that went quiet after updating its cards left them as placeholders until the next epoch. A cluster page for a cluster with no servers at the epoch never rendered; it now shows the cluster as removed.

* **A hovered sparkline point snapping back:** On a page that updates live, an epoch arriving while the pointer rested on a sparkline put the card's headline back to the latest value. The hovered point now holds until the pointer leaves.

* **server-061 expecting routes to another site's cluster:** A cluster name is not unique within a system: leaf clusters at separate sites, or a leaf cluster named like a gatewayed one, share a name, and server-061 expected routes between servers that never connect. Servers sharing a cluster name are now peers only when routes seen in the six hours before connect them, directly or through other servers.

* **account-001 naming a different server on a tie:** When two servers held the same number of an account's connections, the finding's server and the panel's busiest server changed between evaluations. A tie now goes to the same server in both.

* **The system grade counting one server twice:** A check firing at two severities on one entity, such as critical on one raft group and warning on another of the same server, counted as two affected entities. Each check and entity now counts once, at its worse severity.

* **Blank charts and titles:** On a pinned window the KV overview's Bytes/s card drew no reference overlay. A detail page for an entity with no identity record showed an empty title; it now falls back to the kind and key. A pinned time that did not parse ended the window at the current time rather than at an epoch; it now moves to the latest epoch.

* **A collapsed sidebar's pop-up cut off:** Links past the bottom edge of the window could not be reached. The pop-up now scrolls.

* **Past account findings judged against today's limits:** An account's configuration for an earlier time was read from its current one. After a limit changed, account-001 and account-006 at an earlier time, and the account detail page, used the new limit: a raised limit hid a finding that had fired, and a lowered one showed a finding that never did. Each time now uses the configuration in effect then.

* **server-020 with `min_conns: 0`:** A server idle at zero connections fired on every epoch, and one coming up from zero reported an infinite churn percentage. Neither churn value can be encoded as JSON. A zero baseline is now never churn, whatever the floor.

* **Entities missing from history after a retention sweep:** A sweep deleted the configuration a server, stream, consumer or account had at the start of the retained range when it changed again later, so the entity was missing from pages and checks until that change. The sweep now keeps it.

* **system-003 context panel failing at a zero threshold:** With `max_delta` set to 0 the panel's gauge divided by zero and the request failed. Fixed.

* **Server checks skipping a server that missed a scrape:** server-004, -012, -013, -020, -021, -028 and -062 compared each server with the system's previous epoch, so a server that alone missed a scrape was not evaluated when it came back. They now compare it with its own last scrape.

* **`sustain: 0` on system-009 refused at startup:** The check documents 0 as a valid value, but config validation rejected it. Fixed.

* **Hotspot checks needing far more than their multiple:** `server-031` to `server-035` and `server-057` compared a server with a cluster average that included the server itself, so a 2x check could never fire on a two-server cluster and on three needed 4x the other servers. Each now compares a server with the mean of the other servers in its cluster. Against peers a small absolute difference can cross the multiple, so `server-031` gains a `min_leaders` floor and `server-057` a `min_memory` floor.

* **server-057 firing and resolving on every crossing:** Server memory is noisy, so a server whose ratio sat near the multiplier sent a firing and a resolved alert each time it crossed. The check now fires only once the ratio has held on consecutive scrapes for longer than its new `sustain`.

* **A server coming back read as a subscription leak:** `server-050` counted one jump followed by a flat line as steady growth, so where one server carries a large share of a cluster's interest, its return after a restart was reported as a leak on every peer. Growth now has to come from more than its largest single increase, set by the new `min_spread_percent`.

* **Large counts stored wrapped:** A count, gauge or key written from a 64-bit value into a 32-bit column kept only its wrapped remainder past 2^31, so a stream's deleted-message count could read back small or negative, and fractional values such as a server's CPU and TLS timeouts kept only about seven significant digits. Those columns are now 64-bit (see [Considerations](#considerations)); values stored wrapped before the upgrade stay as they were.

* **Requests that reached beyond what they asked for:** A caller with access to a node's `$INS` API could do more than the request allowed. Each is now refused or escaped:

  * A query's `default_interval` was placed into SQL unescaped, so a crafted value ran its own SQL against the catalog. It is now validated.
  * A streamed query or backup accepted a reply subject beginning with `$`, so its output could be aimed at the node's own scrape ingest. Such a subject is refused.
  * A server diagnostics request (profile or expvarz) did not check that its server id was a server key, so a wildcard sent it to every server. A non-key id is refused.
  * Cluster and service names reported by a monitored server were placed unescaped into the web UI's request expressions. They are now escaped.
  * A server page's profile capture was a `GET`, so a link on another site could make a signed-in browser start one. It is now a `POST` the page's own script sends, and a request from another origin is refused.

## Considerations

* **Unknown configuration keys fail startup:** `serve`, `web` and `insights config check` now reject any YAML key no setting resolves, naming it and the closest valid key. A typo such as `webb:` was silently ignored before. Run `insights config check` against your config before upgrading.

  ```
  insights config check --config /etc/insights/config.yaml
  ```

* **A hub node no longer answers `$INS.ping`:** A node that keeps the fleet table, one with a `systems:` list or a `remotes:` block, lists the deployment on `$INS.systems` instead, since its reply would list every catalog it holds. Single-system nodes and collectors still answer. A script that pings a hub to list what it holds gets only those nodes' replies: use `insights system list` or `$INS.systems`. A hub node still answers `$INS.node.<id>.ping` and `$INS.sys.<id>.ping` for itself and its systems. A remote system's leafnode user no longer needs to subscribe to `$INS.ping`; the hub reads its labels through `$INS.sys.<id>.ping`.

* **Listings return `$INS.systems` entries:** `insights system list --format json` and `node list --format json` print arrays of `$INS.systems` entries rather than the raw `$INS.ping` replies, and `GET /systems` on the HTTP gateway and the MCP `systems` tool return one page of them (`systems`, `total`, `next`) rather than an array of replies. `GET /systems` takes `after`, `limit`, `filter` and `catalog=true`. A script reading a reply's `node_id` or `systems[].roles` reads each entry's `id`, `roles` and `nodes` instead. A client whose NATS permissions name `$INS.ping` rather than `$INS.>` needs `$INS.systems` too, or a hub's listing times out instead of falling back.

* **The Operations page no longer pauses or triggers a scrape:** Its Scrape Now and Pause Scraping buttons are gone; collection runs on the scrape interval. A scraper paused from an older web UI resumes when its node restarts, or with `nats req '$INS.sys.<system>.ops.scraper.toggle' ''`.

* **A flat node's web UI shows only its own system:** A node configured with the flat `system:` block no longer lists the other systems on its account. To see every system, use `insights web` or a node with a `remotes:` block or a `systems:` list.

* **Upgrade every node to 1.3, remote systems before the hub:** A 1.3 hub node takes on a remote system only once its collector or node runs 1.3: it learns of the system from a heartbeat 1.2 does not send. A 1.2 hub node keeps indexing a 1.3 collector's stream through its mirror, so upgrade each collector first and the hub nodes after it. Upgraded the other way round, a collector-fed system goes unread from the hub's upgrade until its collector's, and the hub reads back the epochs in between only while the collector's `sink.retention` still holds them. The same order suits a remote system with its own node. A 1.3 web UI shows a 1.2 node's pages with some panels empty and fails the detail pages of checks 1.3 added or gave new thresholds, while a 1.2 web UI fails only the operations page's table counts and the retired `account-009` check for a 1.3 node. A 1.3 hub node relays notifications only for remote systems whose node runs 1.3.

* **A hub node's `/metrics` no longer carries its systems:** A hub node, a node with a `systems:` list and a web tier serve their own metrics on `/metrics`, and every system as a target of its own on `/metrics/systems`. Rename the job that scrapes the hub's `/metrics`, then add an `http_sd_configs` job named `insights` on `/metrics/systems` for the systems, so the example alerting rules and the shipped dashboards, which select `job="insights"`, find them. `prometheus.aggregate` adds each other hub node's own metrics, finding the hub's nodes by their leases in the remotes bucket rather than over `$INS.ping`; without a remotes bucket, or where the account has no JetStream, a node that follows the fleet but is not a hub node asks the nodes its table names, and a flat node serves only itself, so list several flat nodes as targets of their own. A flat node's `/metrics` is unchanged. `insights prometheus` now also reads the `remotes` bucket and follows `$INS.sys.*.feed.heartbeat` and `$INS.sys.*.feed.epoch`; see Metrics.

* **Collector entries in `systems:` load unchanged:** A `systems:` entry without a `scrape:` block takes on that collector by id, with its `db`, `check-thresholds`, `disabled-checks` and `metadata` applied over any `remotes.overrides` that select it, and the node resumes the system's catalog with its history. `mirror-api-prefix` is read as `api-prefix`. `retention` and `stream` on such an entry no longer have an effect: the collector's `sink.retention` bounds the stream the hub node reads. A config with one such entry and no `node.id` needs one added; see the next item.

  Once the collector runs 1.3 and is reachable, the hub node deletes the mirror it created, and epochs it had not yet indexed from that copy are read again from the collector's stream while the collector still holds them. Upgrade every hub node that indexes the same collector together: an older node that shared the mirror stops indexing that system once an upgraded node deletes it. No data is lost. A hub node with restricted permissions needs to publish to `$JS.<domain>.API.>` for each collector-fed system; see [Permissions for the read](/insights/1.3/guides/federated-deployment.md#permissions-for-the-read).

* **A hub requires `node.id`:** A node with a `remotes:` block or a `systems:` entry without a `scrape:` block is a hub, and fails startup without `node.id`. A hub's lease is keyed by its id, so two hubs that took their id from a system they share would each renew the other's lease. A 1.2 hub config with one mirror entry took that entry's id; add `node.id`, unique to each hub. A hub started under an id a running hub holds logs `this node's id is in use by another hub` and acts for no remote system until the other stops.

* **A remote system's user needs `$INS.node.*.ping`:** A hub node checks at start whether a remote system's node already uses its `node.id` by asking `$INS.node.<node_id>.ping`, which that node answers only if its user may subscribe to the subject. A remote system's user that lists the subjects it may subscribe to, rather than allowing `$INS.>`, needs `$INS.node.*.ping` added; see [Remote system permissions](/insights/1.3/guides/federated-deployment.md#remote-system-permissions). Without it the hub node starts even when the ids clash, and can take that node's catalog for its own.

* **`lookback` on the hotspot checks fails startup:** `server-031` to `server-035` are no longer optimization checks, so they take no `lookback`, and a `check-thresholds` entry that sets one fails startup with `unknown parameter "lookback"`. The value never changed what these checks read; delete it.

* **`scraper.endpoints.varz` is gone:** `varz` can no longer be disabled or scraped less often, because every other endpoint attaches its results to the server identity it reports. A config that sets it fails startup under the rule above; delete the block.

* **`indexer.stream-latest` and `indexer.stream-epoch` are ignored:** The indexer resumes from the latest epoch the database committed, whatever the stream holds, so neither setting has an effect. A config that sets either still loads and logs a warning; delete them.

* **Alertmanager no longer receives a resolve for a finding's former severity:** When a finding changes severity, an `alertmanager` endpoint receives the new severity only, and the former one expires. Both fire for up to four minutes unless an [inhibit rule](https://prometheus.io/docs/alerting/latest/configuration/#inhibit_rule) pairs them, matching on the labels listed in the [notifications guide](/insights/1.3/guides/notifications.md#delivery-cadence). `webhook` endpoints still receive the resolve.

* **Webhook endpoints receive a resolve on a severity change:** A webhook receiver now gets a resolve for the former severity ahead of the new firing alert. The pair is annotated (`previous_severity` on the fire, `resolve_reason: severity_changed` on the resolve), so a receiver that closes incidents on resolve can tell an escalation from a recovery.

* **The delivery log moves to the shared stream on first start:** Each node moves the entries of its own `webhook-deliveries_<node_id>` stream into the shared `webhook-deliveries` and deletes the old one. Where a node upgraded earlier has already delivered to the same endpoint for a system, only that system's entries newer than its last one are moved, and the rest are dropped. A move cut short resumes on the next start without duplicates. Against an external sink with a least-privilege user, the node needs `STREAM.DELETE` once for this; see [Sink connection permissions](/insights/1.3/guides/deployment.md#sink-connection-permissions).

* **Unquoted dates in notification endpoints fail startup:** YAML reads an unquoted value such as `2026-06-01` as a date, which was sent converted to a timestamp. A date anywhere in a notification endpoint, labels and annotations included, now fails startup naming the entry and field. Quote the value.

* **`feed.disconnect` is removed:** Subscribe to `feed.conn` instead. Connect events need a subscribe grant on `$SYS.ACCOUNT.*.CONNECT`; without it the rest of the feed is unaffected. A web tier whose NATS user is narrower than `$INS.>` needs subscribe permission on `feed.conn.*.*.disconnect` and `feed.conn.*.*.autherr`. See the [deployment guide](/insights/1.3/guides/deployment.md).

* **`account-009` (Inactive Account) is retired:** An account only contains connections, streams and consumers, and `connection-004`, `stream-024`, `consumer-013` and `consumer-014` still report those when they are idle. Stored `account-009` findings stay readable as history. Findings that were open at upgrade are not sent as resolved, and an Alertmanager alert for one expires. A `check-thresholds`, `disabled-checks` or webhook entry naming the code logs a warning at startup and is otherwise ignored, so it can be removed.

* **`system-008` (Even Cluster Size) is retired:** An even meta cluster is often deliberate, and it is no more exposed to losing quorum than the odd size below it. `system-007` still reports a lost quorum and `system-009` a shrinking meta cluster. Stored findings, open findings and configuration naming the code are handled as for `account-009` above.

* **`server-040` thresholds are renamed `min_cpu_percent` and `min_connections`:** The check reports a server whose peak CPU and connections both stay below these values, so raising them reports more servers, not fewer. The old names `max_cpu_percent` and `max_connections` read as ceilings, which report when exceeded. A `check-thresholds` entry using an old name fails startup with the name to use instead.

  ```
  check-thresholds:

    server-040:

      min_cpu_percent: 5.0

      min_connections: 10
  ```

* **`db.threads: 0` stops at one thread per 128 MiB of `db.memory-limit`:** DuckDB needs about 120 MiB per thread, and each thread adds to the memory an epoch commit needs. A host with more cores than that, such as more than 32 on the default `4GiB`, now runs fewer DuckDB threads. Set `db.threads` to choose the count yourself.

* **`insights ops sizing` sizes `db.memory-limit` from the epoch commit's floor:** It estimates the memory an epoch commit needs from the fleet, the subscriptions retention holds and the thread count, and recommends four times that, at least 2 GiB. The [Memory](/insights/1.3/guides/deployment.md#memory) section of the deployment guide explains the floor. `--per-thread` is removed, and the `$INS.ops.sizing` reply drops `per_thread`, `query_gib`, `write_gib` and `index_gib`. `total_gib` and `threads_rec` still carry the recommendation.

* **New findings after upgrade:** The six new checks (`account-015`, `connection-005`, `connection-006`, `leafnode-005`, `stream-035`, `system-012`) are on by default. Expect new findings, and notifications for endpoints whose `subscriptions` match them (`*` matches every check), on the first epochs after upgrade. Turn off any you do not want with `disabled-checks`.

* **Automatic migrations:** On first start, before the first epoch:

  * The database gains `hx.endpoint_observations`, and `hx.service_snapshots`, `hx.service_presence` and `hx.service_state_epoch`, which hold `service-002`'s state from one epoch to the next. `hx.services` gains `user_pk`.
  * Integer columns the indexer fills from 64-bit values are widened to `BIGINT`, and `FLOAT` columns to `DOUBLE`. This rewrites those columns of every large table, one table at a time, so its time grows with stored history: from seconds to minutes on a long one. DuckDB spills what exceeds `db.memory-limit` to its temp directory, up to about 8 bytes per row for each rewritten column of the largest table, so leave that much free disk. A start cut short repeats it from the beginning.
  * `hx.service_ident` is filled from the subscriptions already stored, so the services pages and checks stop reading every retained subscription.
  * `hx.source`, which nothing read, is dropped. A saved query naming it fails.

  Each runs without intervention, and the log says `migrations applied` once they are done.

* **More subscriptions over the sink's leafnode:** A node subscribes to six more subjects for each system it serves (`findings.active`, `findings.summary`, `findings.state.>`, `checks.context`, `feed.heartbeat` and `ping`) and a few more for itself. When the sink is a leafnode into an account with `max_subscriptions` set, these count against that limit, and past it the node's API is not reachable across the leafnode: `insights query` and other clients connected on the far side get no answer from it. Compare the leafnode connection's subscription count on the server it connects to (`/leafz?subs=1`) with the account's limit before upgrading, and raise the limit if it is close.

* **Rolling back needs a backup:** The migrations above are one-way, and a 1.2 binary does not check for them, so do not start 1.2 on a database 1.3 has opened. Take a backup with `insights ops backup save` before upgrading, and restore it to roll back. From 1.3 on, a binary that finds migrations it does not know refuses to open the file writable, names each one, and leaves the file unchanged; run the release that wrote it.
