Skip to content

Commit 8e67098

Browse files
committed
Add miissing classic queue stats template
1 parent ea0c35d commit 8e67098

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<table class="facts facts-l">
2+
<tr>
3+
<th>State</th>
4+
<td><%= fmt_object_state(queue) %></td>
5+
</tr>
6+
<% if(queue.consumers) { %>
7+
<tr>
8+
<th>Consumers</th>
9+
<td><%= fmt_string(queue.consumers) %></td>
10+
</tr>
11+
<% } else if(queue.hasOwnProperty('consumer_details')) { %>
12+
<tr>
13+
<th>Consumers</th>
14+
<td><%= fmt_string(queue.consumer_details.length) %></td>
15+
</tr>
16+
<% } %>
17+
<tr>
18+
<th>Consumer capacity <span class="help" id="queue-consumer-capacity"></th>
19+
<td><%= fmt_percent(queue.consumer_capacity) %></td>
20+
</tr>
21+
<% if(queue.hasOwnProperty('publishers')) { %>
22+
<tr>
23+
<th>Publishers</th>
24+
<td><%= fmt_string(queue.publishers) %></td>
25+
</tr>
26+
<% } %>
27+
</table>
28+
29+
<table class="facts">
30+
<tr>
31+
<td></td>
32+
<th class="horizontal">Total</th>
33+
<th class="horizontal">Ready</th>
34+
<th class="horizontal">Unacked</th>
35+
<th class="horizontal">In memory</th>
36+
<th class="horizontal">Persistent</th>
37+
<th class="horizontal">Transient, Paged Out</th>
38+
</tr>
39+
<tr>
40+
<th>
41+
Messages
42+
<span class="help" id="queue-messages"></span>
43+
</th>
44+
<td class="r">
45+
<%= fmt_num_thousands(queue.messages) %>
46+
</td>
47+
<td class="r">
48+
<%= fmt_num_thousands(queue.messages_ready) %>
49+
</td>
50+
<td class="r">
51+
<%= fmt_num_thousands(queue.messages_unacknowledged) %>
52+
</td>
53+
<td class="r">
54+
<%= fmt_num_thousands(queue.messages_ram) %>
55+
</td>
56+
<td class="r">
57+
<%= fmt_num_thousands(queue.messages_persistent) %>
58+
</td>
59+
<td class="r">
60+
<%= fmt_num_thousands(queue.messages_paged_out) %>
61+
</td>
62+
</tr>
63+
<tr>
64+
<th>
65+
Message body bytes
66+
<span class="help" id="queue-message-body-bytes"></span>
67+
</th>
68+
<td class="r">
69+
<%= fmt_bytes(queue.message_bytes) %>
70+
</td>
71+
<td class="r">
72+
<%= fmt_bytes(queue.message_bytes_ready) %>
73+
</td>
74+
<td class="r">
75+
<%= fmt_bytes(queue.message_bytes_unacknowledged) %>
76+
</td>
77+
<td class="r">
78+
<%= fmt_bytes(queue.message_bytes_ram) %>
79+
</td>
80+
<td class="r">
81+
<%= fmt_bytes(queue.message_bytes_persistent) %>
82+
</td>
83+
<td class="r">
84+
<%= fmt_bytes(queue.message_bytes_paged_out) %>
85+
</td>
86+
</tr>
87+
<tr>
88+
<th>
89+
Process memory
90+
<span class="help" id="queue-process-memory"></span>
91+
</th>
92+
<td class="r"><%= fmt_bytes(queue.memory) %></td>
93+
</tr>
94+
</table>

0 commit comments

Comments
 (0)