mirror of https://github.com/zulip/zulip.git
check-rabbitmq-queue: Log queue size in "queue stuck" alert.
This commit is contained in:
parent
5ee80c70e2
commit
28a6983b34
|
@ -77,7 +77,8 @@ def analyze_queue_stats(queue_name: str, stats: Dict[str, Any],
|
|||
# 50).
|
||||
return dict(status=CRITICAL,
|
||||
name=queue_name,
|
||||
message='queue appears to be stuck, last update %s' % (stats['update_time'],))
|
||||
message='queue appears to be stuck, last update %s, queue size %s' % (
|
||||
stats['update_time'], queue_count_rabbitmqctl))
|
||||
|
||||
current_size = stats['current_queue_size']
|
||||
average_consume_time = stats['recent_average_consume_time']
|
||||
|
|
Loading…
Reference in New Issue