Environment Variables
This reference covers the environment variables used to configure Hotrod Server, Hotrod Agent and Hotrod CLI.
note
Some configuration and/or startup options do not have environment variable equivalents. Please use --help
for additional CLI parameters on the relevant commands for additional options.
Hotrod Server
These settings apply to both hotrod run server
and hotrod run stand-alone
.
Options without environment variables are omitted here.
CLI / Environment Variable | Default | Description |
---|---|---|
--staging-dir HOTROD_STAGING_DIR | ~/.local/hotrod | Hotrod Server's data/working directory |
--auto-enrollment-key HOTROD_AUTO_ENROLLMENT_KEY | none | The shared secret for agent enrollments |
--bind-address HOTROD_BIND_ADDRESS | 127.0.0.1:3000 | The Server's HTTP API will be served on this address and port. Use 0.0.0.0:3000 for all network interfaces. |
--disk-usage-max-percentage HOTROD_DB_DISK_USE_MAX_PERCENT | 80 | Hotrod will remove logs & metric data when its staging directory's volume exceeds this threshold |
--jwt-expiry-mins HOTROD_JWT_EXPIRY_MINS | 60min | JWT expiry time in minutes |
--jwt-psk HOTROD_JWT_PSK | Auto-generated | Preshared JWT signing key |
--log-retention-days HOTROD_LOG_RETENTION_DAYS | 30 | The maximum number of days that logs should be retained |
--tls-cert HOTROD_TLS_CERT | none | Path to TLS certificate file (if using TLS) |
--tls-key HOTROD_TLS_KEY | none | Path to TLS key(if using TLS) |
--whitelist HOTRODD_WHITELIST | none | Allow get metrics/logs to access unauthenticated from these IP addresses |
--auth-db HOTROD_AUTH_DB | --staging-dir | Path to authentication DB. Its recommended to use --staging-dir instead. |
n/a HOTROD_LICENSE | none | Used to provide Hotrod Server with a license key. If present, it will override existing licenses on every startup. |
Hotrod Agent
These settings apply to hotrod run agent
.
Options without environment variables are omitted here.
CLI / Environment Variable | Default | Description |
---|---|---|
--hotrod-agent-api-key HOTROD_AGENT_API_KEY | n/a | API KEY for this agent |
--hotrod-agent-id HOTROD_AGENT_ID | auto-generated | unique ID used to identify this agent |
--hotrod-agent-listener HOTROD_AGENT_LISTENER | 127.0.0.1:4040 | Listening address for internal pipe-agent comms. Don't bind on external address. |
--hotrod-agent-name HOTROD_AGENT_NAME | n/a | Name for this agent |
--hotrod-url HOTROD_URL | http://localhost:3000 | Hotrod server URL |
--auto-enrollment-key HOTROD_AUTO_ENROLLMENT_KEY | n/a | Enrollment secret if auto-enrollment is enabled on the server |
--pipes-dir HOTROD_PIPES_DIR | n/a | Directory where pipes are stored, defaulting to user's cache directory |
--poll-interval HOTROD_AGENT_POLL_INTERVAL | 15 | Poll Hotrod server for updates at this interval (seconds). 0 disables updates |
--metrics-interval HOTROD_AGENT_METRICS_INTERVAL | 60 | Send metrics to Hotrod server at this interval (seconds) |
--logs-interval HOTROD_AGENT_LOGS_INTERVAL | 5 | Send logs to Hotrod server at this interval (seconds) |
--tags HOTROD_AGENT_TAGS | n/a | Tags to attach to this agent's system information |
Hotrod CLI
These settings apply to the Hotrod binary's administrative commands. These commands are a CLI wrapper to Hotrod Server's HTTP API.
Environment Variable | Default | Description |
---|---|---|
HOTROD_URL | http://localhost:3000 | Hotrod server URL |