Observer
Observer Agent

Environment variables

Every environment variable the agent reads, with defaults and meaning.

The agent is configured through environment variables. There is no configuration file; this keeps the runtime container immutable and the deployment surface small.

Required

VariableNotes
AGENT_KEYAuthentication key issued by the cloud. Format obs_live_<43 base64url chars>. The cloud stores its hash, never the plaintext.
CLOUD_SERVER_URLBase URL of Observer Cloud. Defaults to https://localhost:3000 (development only). Override in every real deployment.

Required for Prometheus probes

VariableNotes
PROMETHEUS_SERVER_URLBase URL of the Prometheus the agent should query. Used as the default for every Prometheus metric, overridable per-metric via prometheus_url in the metric's source config.

Optional Prometheus auth

VariableDefaultNotes
PROMETHEUS_BASIC_AUTH_ENABLEDtrueSet to any value other than true to disable. When enabled, the agent sends Authorization: Basic <encoded> on every Prometheus request.
PROMETHEUS_USERNAMEadminBasic auth username.
PROMETHEUS_PASSWORDemptyBasic auth password. Treat as a secret.

Dashboard

VariableDefaultNotes
ENABLE_DEBUG_DASHBOARDtrueSet to false to disable the local debug dashboard.
DEBUG_DASHBOARD_HOST0.0.0.0Bind address for the dashboard HTTP listener.
DEBUG_DASHBOARD_PORT10101Port for the dashboard HTTP listener.

Logging

VariableDefaultNotes
BROADCAST_LOGSfalseWhen true, the agent forwards a subset of its log lines to the cloud for surfacing in the agent detail page. PromQL query strings are always redacted to a SHA-256 prefix and length, regardless of this flag.
LOG_BROADCAST_LEVELINFOMinimum level forwarded when BROADCAST_LOGS=true. One of DEBUG, INFO, WARN, ERROR.
VERBOSEfalseLocal stdout verbosity.

Local queue

VariableDefaultNotes
BUFFER_PATH./observer-agent-buffer.dbPath to the agent's local SQLite write-ahead queue file.
BUFFER_MAX_ROWS10000Hard cap on queued pushes. When the queue reaches the cap, oldest entries are evicted to admit new ones.

Other

VariableDefaultNotes
SKIP_SSL_VERIFICATIONfalseDisables TLS verification on cloud-bound requests. Development only.
NODE_ENVunsetAffects log formatting. Set to production in production deployments.
Was this page helpful?