Skip to main content
NervesHub shows the current state of every device, and the history of how that changed: when devices connected, how updates ended, and what messages crossed each connection.

Requirements

  • NervesHub 2.5.0 or later.
  • ClickHouse on the NervesHub instance for everything historical. Without it, the parts marked below are hidden or empty. See Feature prerequisites.
  • The Insights page is closed to members whose custom role is limited to devices with certain tags. See Roles.
Nothing has to be turned on per product or in firmware. Health figures on Insights depend on devices reporting health. See Health monitoring.

Product Insights

In your product, select Insights. The page refreshes every minute while Auto refresh is on.

What the fleet is made of

Three bars count every device in the product once each: Switch between Count and Percent. Every count links to the devices list filtered to the devices it counts.

Health and connection by firmware version

The table under the bars crosses health and connection with firmware version. It names the four versions with the most devices and folds the rest into one row. The Stands out card beside it names a version whose devices are notably less healthy than the rest of the fleet. Health is judged on active devices only: those online or seen in the last 7 days. A version stands out when all of these hold:
  • It has at least 10 active devices.
  • At least 3 of them are not healthy.
  • Its share of not-healthy devices is at least twice the fleet’s.
The trends row shows how the fleet moved over a period. Pick 24 h, 14 d, 4 w, or 90 d. Days are in your time zone. With Releases on, each chart marks when the newest version was released, if that falls in the period. Shares are of today’s fleet. A device added during the period is counted from the start, and a removed device is not counted.

Lists

Connections that ended as planned do not count toward flapping: a device going to sleep, a reboot, a reconnect someone asked for, a revoked key, or a server restart.

Connection history

NervesHub records each connection a device makes: when it was established, when it closed, and why. Open a device and select the Health tab. The connection lane at the top of the History card covers the same time frame as the metric charts. It shows:
  • When the device was online.
  • When it was offline for a minute or more, and the reason the connection before it ended.
  • The network interface and address the device came back on.
  • Reconnects, where the device opened a new connection less than a minute after the last one.
The metric charts mark the same offline periods. Change the time frame, or drag across a chart to zoom.

Firmware update history

Open a device and select the Firmware History tab. It has two views. Installed firmware lists each firmware the device reported, newest first, with its validation status. Update attempts lists how each update sent to the device ended, with when, the outcome, detail, and what sent it: a deployment group or a manual request. An attempt ends one of six ways: A failure adds to the device’s count of consecutive failed updates. That count is kept outside ClickHouse, so the Failing updates list on Insights works on every instance. An attempt that has just ended can take a moment to appear in Update attempts. The same update history feeds two other places that need ClickHouse. A deployment group’s Stats tab counts how each release’s attempts ended and how long they took. See Deployment groups. A firmware’s page counts its failed installs over the last 7 days.

Data History

The Data History tab on a device shows every message that crossed the device’s connection, in both directions, newest first. Use it to answer whether a device was ever sent a message, and what it sent back. Each row has the time, direction, channel, event name, and data. Selecting a row lays out its payload. Filter by direction (Both ways, From device, To device) and by channel (All channels, Device, Console, Extensions). Filters are kept in the URL, so you can link someone to a view. New messages stream in while the tab is open. Pause streaming to read. Resuming fetches what arrived while paused. The tab holds up to 1,000 messages. What is kept of each message depends on its channel: Console and shell traffic is what someone typed and what came back, which can include credentials. If the tab shows “Analytics aren’t enabled for your platform.”, the instance runs without ClickHouse.