Skip to main content

Agent Environment

These environment variables configure the Blackbox agent.

VariableRequiredDefaultDescription
SERVER_URLYesNoneBase URL of the Blackbox server.
AGENT_TOKENYesNoneSecret matching the configured node token.
NODE_NAMENoSystem hostnameDisplayed node identifier.
WATCH_PATHSNoNoneColon-separated list of container-visible paths to watch.
WATCH_IGNORENoNoneColon-separated glob patterns to exclude from file watching.
WATCH_SYSTEMDNofalseEnables journal-based systemd monitoring on Linux.
QUEUE_DB_PATHNo/data/queue.dbLocal persistent event queue path.
PUIDNo65532Runtime user ID for the agent.
PGIDNo65532Runtime group ID for the agent.
TZNoContainer defaultIANA timezone for process logs.

Most Common Settings

  • SERVER_URL, AGENT_TOKEN, and NODE_NAME are always relevant.
  • WATCH_PATHS matters only if you want file watcher behavior.
  • WATCH_SYSTEMD matters only on Linux nodes where journald access is mounted.
  • PUID and PGID matter when the default runtime identity cannot read your watched paths.