-
Notifications
You must be signed in to change notification settings - Fork 4k
Expand file tree
/
Copy pathstream-queue-stats.ejs
More file actions
60 lines (59 loc) · 1.49 KB
/
stream-queue-stats.ejs
File metadata and controls
60 lines (59 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<table class="facts facts-l">
<tr>
<th>State</th>
<td><%= fmt_object_state(queue) %></td>
</tr>
<% if(queue.consumers) { %>
<tr>
<th>Consumers</th>
<td><%= fmt_string(queue.consumers) %></td>
</tr>
<% } else if(queue.hasOwnProperty('consumer_details')) { %>
<tr>
<th>Consumers</th>
<td><%= fmt_string(queue.consumer_details.length) %></td>
</tr>
<% } %>
<% if(queue.hasOwnProperty('publishers')) { %>
<tr>
<th>Publishers</th>
<td><%= fmt_string(queue.publishers) %></td>
</tr>
<% } %>
<tr>
<th>Readers</th>
<td><%= fmt_table_short(queue.readers) %></td>
</tr>
<tr>
<th>Segments</th>
<td><%= fmt_string(queue.segments) %></td>
</tr>
<tr>
<th>Oldest message</th>
<td><%= fmt_timestamp_mini(queue.first_timestamp) %></td>
</tr>
</table>
<table class="facts">
<tr>
<td></td>
<th class="horizontal">Total</th>
</tr>
<tr>
<th>
Messages
<span class="help" id="queue-messages-stream"></span>
</th>
<td class="r">
<%= fmt_num_thousands(queue.messages) %>
</td>
</tr>
<tr>
</tr>
<tr>
<th>
Process memory
<span class="help" id="queue-process-memory"></span>
</th>
<td class="r"><%= fmt_bytes(queue.memory) %></td>
</tr>
</table>