feat(prometheus): add postal_message_queue_latency metric

This commit is contained in:
Adam Cooke
2024-03-17 09:29:22 +00:00
parent 4fcb9e9a2e
commit ee8d829a85
2 changed files with 13 additions and 0 deletions
+3
View File
@@ -288,6 +288,9 @@ module Worker
register_prometheus_histogram :postal_worker_task_runtime,
docstring: "The time taken to process tasks",
labels: [:task]
register_prometheus_histogram :postal_message_queue_latency,
docstring: "The length of time between a message being queued and being dequeued"
end
end