Skip to content

Runtime settings

Runtime settings are stored in the hub database and can be changed from the web UI without rebuilding or redeploying agents.

Agent collection interval

The main runtime knob today is Settings → Runtime → Agent collection interval.

SettingDefaultBoundsWhat it controls
agent_interval5s2s – 1hHow often agents collect and POST a metrics snapshot.

Shorter intervals make the dashboard feel more live but increase network traffic and SQLite rows. Longer intervals reduce writes and are friendlier to small HDD-backed hubs, but the dashboard can lag by up to one interval.

How agents receive the policy

Agents still need a bootstrap interval from env/YAML so they can start before the hub is reachable. After successful ticks, the agent calls:

GET /api/agent/policy
Authorization: Bearer lum_...

The hub responds with the current policy:

{"collection_interval":"5s"}

If the interval changed in Settings, the agent applies it to future ticks without a redeploy. If the hub is unreachable, the agent keeps using its current local interval and continues buffering failed ingests.

Precedence

At startup:

  1. Process environment wins.
  2. YAML config fills missing env keys.
  3. .env fills missing keys in development.
  4. Built-in defaults apply last.

After the agent has authenticated with the hub, hub policy can override the collection interval at runtime. The hub policy does not rewrite the target machine’s env file, YAML file, or Docker Compose file.

Practical values

IntervalGood forTradeoff
5sDefault live dashboard feelMore rows and more frequent agent work.
15sSmall homelab with many hostsDashboard still feels live, writes drop 3×.
30sHDD-first deploymentsLower write pressure, slower stale/online feedback.
1mLow-priority hostsSparse charts and delayed incident visibility.

For most installs, start with 5s and increase only if disk writes or host count become a concern.

  • Retention controls how long SQLite rows stay around.
  • Reliability explains buffering and hub batching.
  • API documents the policy endpoint.