@@ -39,7 +39,7 @@ defmodule RabbitMQ.CLI.Diagnostics.Commands.CheckForQuorumQueuesWithoutAnElected
39
39
% {
40
40
"result" => "ok" ,
41
41
"message" =>
42
- "Node #{ node_name } reported all quorum queue leaders as healthy "
42
+ "Node #{ node_name } reported all quorum queue as having responsive leader replicas "
43
43
} }
44
44
end
45
45
@@ -48,15 +48,15 @@ defmodule RabbitMQ.CLI.Diagnostics.Commands.CheckForQuorumQueuesWithoutAnElected
48
48
end
49
49
50
50
def output ( :ok , % { node: node_name } ) do
51
- { :ok , "Node #{ node_name } reported all quorum queue leaders as healthy " }
51
+ { :ok , "Node #{ node_name } reported all quorum queue as having responsive leader replicas " }
52
52
end
53
53
54
54
def output ( { :error , unhealthy_queues } , % { node: node_name , formatter: "json" } ) when is_list ( unhealthy_queues ) do
55
55
{ :ok , :check_passed ,
56
56
% {
57
57
"result" => "error" ,
58
58
"queues" => unhealthy_queues ,
59
- "message" => "Node #{ node_name } reported unhealthy quorum queue leaders "
59
+ "message" => "Node #{ node_name } reported quorum queues with a missing (not elected) or unresponsive leader replica "
60
60
} }
61
61
end
62
62
@@ -70,23 +70,22 @@ defmodule RabbitMQ.CLI.Diagnostics.Commands.CheckForQuorumQueuesWithoutAnElected
70
70
{ :ok , :check_passed , Enum . join ( lines , line_separator ( ) ) }
71
71
end
72
72
73
- def formatter ( ) , do: RabbitMQ.CLI.Formatters.PrettyTable
74
-
75
73
def usage ( ) do
76
74
"check_for_quorum_queues_without_an_elected_leader [--vhost <vhost>] [--across-all-vhosts] <pattern>"
77
75
end
78
76
79
77
def usage_additional do
80
78
[
81
79
[ "<pattern>" , "regular expression pattern used to match quorum queues" ] ,
82
- [ "--across-all-vhosts" , "run leader health check for all queues in all virtual hosts on the node " ]
80
+ [ "--across-all-vhosts" , "run this health check across all existing virtual hosts" ]
83
81
]
84
82
end
85
83
86
84
def help_section ( ) , do: :observability_and_health_checks
87
85
88
86
def usage_doc_guides ( ) do
89
87
[
88
+ DocGuide . monitoring ( ) ,
90
89
DocGuide . quorum_queues ( )
91
90
]
92
91
end
0 commit comments