Skip to content

Commit 48f8492

Browse files
fixup! rabbit_alarm: Add a helper to format resource alarm sources
Co-authored-by: Sunny Katkuri <skatkur@amazon.com>
1 parent f47572d commit 48f8492

File tree

1 file changed

+6
-0
lines changed
  • deps/rabbitmq_cli/lib/rabbitmq/cli/core

1 file changed

+6
-0
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/core/alarms.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ defmodule RabbitMQ.CLI.Core.Alarms do
2121

2222
{:resource_limit, :disk, alarmed_node_name}, acc ->
2323
["Free disk space alarm on node #{alarmed_node_name}" | acc]
24+
25+
{{:resource_limit, {:disk, queue_type}, alarmed_node_name}, _}, acc ->
26+
["Free disk space alarm on node #{alarmed_node_name} for #{queue_type}" | acc]
27+
28+
{:resource_limit, {:disk, queue_type}, alarmed_node_name}, acc ->
29+
["Free disk space alarm on node #{alarmed_node_name} for #{queue_type}" | acc]
2430
end)
2531
|> Enum.reverse()
2632
end

0 commit comments

Comments
 (0)