diff --git a/docs/deploy-and-configure/configuration.md b/docs/deploy-and-configure/configuration.md index dd0030e..418dfb0 100644 --- a/docs/deploy-and-configure/configuration.md +++ b/docs/deploy-and-configure/configuration.md @@ -23,6 +23,7 @@ The following environment variables can be set: | `ORB_DEPLOYMENT_TOKEN` | Sets the [Deployment Token](/docs/deploy-and-configure/deployment-tokens#using-environment-variable) | `ORB_DEPLOYMENT_TOKEN=orb-dt1-yourdeploymenttoken678` | 1.2 | | `ORB_EPHEMERAL_MODE` | Sets Orb measurement data storage to in-memory only. Protects flash memory from frequent writes. All measurement data stored on the Orb is lost when Orb is stopped or restarted. | `ORB_EPHEMERAL_MODE=1` | 1.4.0 | | `ORB_DEVICE_NAME_OVERRIDE` | Sets this Orb's name which appears in Orb apps and Orb Cloud | `ORB_DEVICE_NAME_OVERRIDE=MyDeviceName` | 1.4.1 | +| `ORB_HOST_ID` | Sets the [host ID](/docs/setup-sensor/interface-binding#host-id) shared by every Orb on this machine. Up to 64 characters: letters, digits, and `- . _ ~`. Not instance-scoped | `ORB_HOST_ID=rack3-probe1` | — | | `ORB_MEASURE_SERVER_ENABLED` | Enables the Orb to act as a server for speed and responsiveness testing | `ORB_MEASURE_SERVER_ENABLED=1` | 1.4.10 | | `ORB_MEASURE_SERVER_PORT` | Set the port for the Orb measurement server | `ORB_MEASURE_SERVER_PORT=8080` | 1.4.10 | | `ORB_SERVER_POP` | Sets a point of presence description for the Orb measurement server, reported to Orbs running Orb-to-Orb measurements against it. By convention, the nearest 3-character airport code, but any short string works | `ORB_SERVER_POP=sea` | 1.6.0 | diff --git a/docs/setup-sensor/interface-binding.md b/docs/setup-sensor/interface-binding.md index 286863e..f0ad367 100644 --- a/docs/setup-sensor/interface-binding.md +++ b/docs/setup-sensor/interface-binding.md @@ -70,3 +70,18 @@ orb --instance wired link orb --instance wifi link ``` +--- + +# Host ID + +Instances on the same host share a **host ID**, so Orb Cloud can tell which Orbs run on the same machine. The first instance generates it and saves it to `host_id` in the Orb configuration directory (by default `~/.config/orb/host_id`). + +To set your own, for example an asset tag, use `ORB_HOST_ID` with the same value for every instance: + +```sh +ORB_HOST_ID=rack3-probe1 orb --instance wired sensor --interface eth0 +``` + +The value can be up to 64 letters, digits, and `- . _ ~`. `ORB_HOST_ID` can't be scoped to a single instance. + +The host ID appears as `host_id` on devices in the [Orb Cloud API](/docs/integrations/api), and dataset queries can filter, group by, or count distinct `host_id`.