Skip to main content

MZ_METRICS_USAGE_REFRESH_INTERVAL

Constant MZ_METRICS_USAGE_REFRESH_INTERVAL 

Source
pub(crate) const MZ_METRICS_USAGE_REFRESH_INTERVAL: Config<Duration>;
Expand description

How frequently to sample process resource usage.

This interval bounds how short a spike can be and still be observed, but only for the sources with no kernel-side high-water mark. A kernel-maintained peak such as cgroup memory.peak is exact no matter how rarely it is read. Deliberately separate from memory_limiter_interval, which governs OOM-kill behavior and must not be retuned for introspection’s sake.