@ai-digital-factory/host-manager
v0.1.5
Published
Infrastructure Host telemetry collector for OpenObserve.
Readme
host-manager
@ai-digital-factory/host-manager is the Infrastructure Host telemetry CLI. The executable name is host-manager. It requires Node.js 22 or later.
host-manager --help
host-manager --version
host-manager host-telemetry runhost-telemetry run collects and publishes until the process is stopped. systemd runs that command from a pinned npm install. Manual npm or npx installation on a host is not supported. Publishing a package version does not change the version installed on a host.
The pinned installer also installs a root-owned, no-argument Docker telemetry helper and a restricted sudo rule. The collector stays outside the Docker group and obtains only container identity, state, restart count and resource counters. Container observations share infra_hosts and the durable queue with host snapshots. The helper follows the installed version on rollback; rollback to a release without it removes helper authorization.
The service reads:
| Environment | Required | Meaning |
| --- | --- | --- |
| HOST_ID | yes | infra or worker |
| OPENOBSERVE_INGEST_URL | yes | OpenObserve Route, https://logger.piyush-arora.in |
| OPENOBSERVE_INGEST_USER | yes | Ingestion user for stream infra_hosts |
| OPENOBSERVE_INGEST_TOKEN | yes | Ingestion token for stream infra_hosts |
| HOST_TELEMETRY_STATE_DIR | yes | Queue and journal cursor directory |
| OPENOBSERVE_ORG | no | Defaults to default |
| OPENOBSERVE_STREAM | no | Must be omitted or infra_hosts |
Invalid configuration exits nonzero. SIGTERM leaves the queue and journal cursor on disk.
Query and alert guidance lives in Host telemetry.
