ark::catalog::MetricQueueConfig
Defined in header “ark/catalog/metric_queue.hh”.
A configuration structure for your metric queue, allowing you to specify intervals and persistence paths.
Variables
-
std::chrono::nanoseconds bucket_interval= std::chrono::minutes{10}
Interval that we generate new buckets for. -
std::chrono::nanoseconds linger_duration= bucket_interval * 3
Duration we allow buckets to linger for. If a bucket is clean and older than this threshold, it is removed. -
std::filesystem::path persistence_file_path{}
If populated, metrics will be recorded to this path as they are pushed to the queue, preventing data loss in the event that the software restarts.