Skip to main content

Module settings

Module settings 

Source
Expand description

Runtime-tunable key/value settings (the settings table). Operator-set policy that should take effect without an env change + restart — e.g. the recording disk limits the dashboard can change. Readers fall back to the static env Config when a key is unset, so the env values remain the defaults.

Constants§

RECORDING_MAX_BYTES
Global recording size cap, in bytes (overrides HELDAR_MAX_RECORDINGS_GB).
RECORDING_MIN_FREE_BYTES
Free-disk floor on the recordings filesystem, in bytes (overrides HELDAR_MIN_FREE_DISK_GB).

Functions§

clear
Remove a setting (reverting the reader to its env default).
get_i64
Read an integer setting, or None if unset / unparseable.
set_i64
Upsert an integer setting.