From f5325c49ff1152ad53eaaec98717ad3412d379ae Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Wed, 1 Oct 2025 18:31:13 +0200 Subject: [PATCH] docs(process.rb): add help about time unit used by metric (#3339) Signed-off-by: Arthur Lutz --- app/lib/worker/process.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/worker/process.rb b/app/lib/worker/process.rb index 70e3e4f..9b0bf3b 100644 --- a/app/lib/worker/process.rb +++ b/app/lib/worker/process.rb @@ -298,7 +298,7 @@ module Worker labels: [:thread, :job] register_prometheus_histogram :postal_worker_job_runtime, - docstring: "The time taken to process jobs", + docstring: "The time taken to process jobs (in seconds)", labels: [:thread, :job] register_prometheus_counter :postal_worker_errors, @@ -306,11 +306,11 @@ module Worker labels: [:error] register_prometheus_histogram :postal_worker_task_runtime, - docstring: "The time taken to process tasks", + docstring: "The time taken to process tasks (in seconds)", labels: [:task] register_prometheus_histogram :postal_message_queue_latency, - docstring: "The length of time between a message being queued and being dequeued" + docstring: "The length of time between a message being queued and being dequeued (in seconds)" end end