Skip to content

Commit

Permalink
Merge pull request #12035 from rabbitmq/stream-mgmt-queue-page-tweaks
Browse files Browse the repository at this point in the history
Management: Add segment count to stream queue page
  • Loading branch information
michaelklishin authored Aug 21, 2024
2 parents 6ed8190 + 615d150 commit f8f0d33
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/rabbitmq_management/priv/www/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ var HELP = {
'queue-messages':
'<p>Message counts.</p><p>Note that "in memory" and "persistent" are not mutually exclusive; persistent messages can be in memory as well as on disc, and transient messages can be paged out if memory is tight. Non-durable queues will consider all messages to be transient.</p>',

'queue-messages-stream':
'<p>Approximate message counts.</p><p>Note that streams store some entries that are not user messages such as offset tracking data which is included in this count. Thus this value will never be completely correct.</p>',

'queue-dead-lettered':
'Applies to messages dead-lettered with dead-letter-strategy <code>at-least-once</code>.',

Expand Down
12 changes: 12 additions & 0 deletions deps/rabbitmq_management/priv/www/js/tmpl/queue.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,21 @@
<th>Readers</th>
<td><%= fmt_table_short(queue.readers) %></td>
</tr>
<tr>
<th>Segments</th>
<td><%= fmt_string(queue.segments) %></td>
</tr>
<% } %>
</table>
<table class="facts">
<tr>
<td></td>
<th class="horizontal">Total</th>
<% if (!is_stream(queue)) { %>
<th class="horizontal">Ready</th>
<th class="horizontal">Unacked</th>
<% } %>
<% if (is_quorum(queue)) { %>
<th class="horizontal">High priority</th>
<th class="horizontal">Normal priority</th>
Expand All @@ -147,17 +153,23 @@
<tr>
<th>
Messages
<% if (is_stream(queue)) { %>
<span class="help" id="queue-messages-stream"></span>
<% } else { %>
<span class="help" id="queue-messages"></span>
<% } %>
</th>
<td class="r">
<%= fmt_num_thousands(queue.messages) %>
</td>
<% if (!is_stream(queue)) { %>
<td class="r">
<%= fmt_num_thousands(queue.messages_ready) %>
</td>
<td class="r">
<%= fmt_num_thousands(queue.messages_unacknowledged) %>
</td>
<% } %>
<% if (is_quorum(queue)) { %>
<td class="r">
<%= fmt_num_thousands(queue.messages_ready_high) %>
Expand Down

0 comments on commit f8f0d33

Please sign in to comment.