From adcff988dcf98607c6afae37e6ec9d1e44022b27 Mon Sep 17 00:00:00 2001 From: joshua-spacetime Date: Mon, 20 Nov 2023 09:07:54 -0800 Subject: [PATCH] refactor(571): Turn module queue length into histogram metric --- crates/core/src/worker_metrics/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/core/src/worker_metrics/mod.rs b/crates/core/src/worker_metrics/mod.rs index 644d6633be..72d857af0a 100644 --- a/crates/core/src/worker_metrics/mod.rs +++ b/crates/core/src/worker_metrics/mod.rs @@ -70,6 +70,12 @@ metrics_group!( #[labels(identity: Identity, module_hash: Hash, database_address: Address, reducer_symbol: str)] pub instance_queue_length: IntGaugeVec, + #[name = spacetime_worker_instance_operation_queue_length_histogram] + #[help = "Length of the wait queue for access to a module instance."] + #[labels(identity: Identity, module_hash: Hash, database_address: Address, reducer_symbol: str)] + #[buckets(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 25, 50)] + pub instance_queue_length_histogram: HistogramVec, + #[name = spacetime_system_disk_space_total_bytes] #[help = "A node's total disk space (in bytes)"] pub system_disk_space_total: IntGauge,