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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
|
<h1>Queues</h1>
<div class="section">
<h2>All queues</h2>
<div class="hider updatable">
<%= maybe_truncate(queues) %>
<% if (queues.length > 0) { %>
<%
var col_redeliver = !is_col_empty(queues, 'redeliver');
%>
<table class="list">
<thead>
<tr>
<th colspan="<% if (nodes_interesting && vhosts_interesting) { %>6<% } else if (nodes_interesting || vhosts_interesting) { %>5<% } else { %>4<% } %>">Overview</th>
<th colspan="3">Messages</th>
<% if (statistics_level == 'fine') { %>
<th colspan="3">Message rates</th>
<% } %>
</tr>
<tr>
<% if (vhosts_interesting) { %>
<th><%= fmt_sort('Virtual host', 'vhost') %></th>
<% } %>
<th><%= fmt_sort('Name', 'name') %></th>
<% if (nodes_interesting) { %>
<th><%= fmt_sort('Node', 'node') %></th>
<% } %>
<th><%= fmt_sort('Exclusive', 'owner_pid_details.name') %></th>
<th>Parameters</th>
<th><%= fmt_sort('Status', 'idle_since') %></th>
<th><%= fmt_sort('Ready', 'messages_ready') %></th>
<th><%= fmt_sort('Unacked', 'messages_unacknowledged') %></th>
<th><%= fmt_sort('Total', 'messages') %></th>
<% if (statistics_level == 'fine') { %>
<th><%= fmt_sort('incoming', 'message_stats.publish_details.rate') %></th>
<th><%= fmt_sort('deliver / get', 'message_stats.deliver_get_details.rate') %>
<% if (col_redeliver) { %>
<sub><%= fmt_sort('of which redelivered', 'message_stats.redeliver_details.rate') %></sub>
<% } %>
</th>
<th><%= fmt_sort('ack', 'message_stats.ack_details.rate') %></th>
<% } %>
</tr>
</thead>
<tbody>
<%
for (var i = 0; i < queues.length; i++) {
var queue = queues[i];
%>
<tr<%= alt_rows(i) %>>
<% if (vhosts_interesting) { %>
<td><%= fmt_string(queue.vhost) %></td>
<% } %>
<td><%= link_queue(queue.vhost, queue.name) %></td>
<% if (nodes_interesting) { %>
<td>
<%= fmt_string(queue.node) %>
<%= fmt_mirrors(queue) %>
</td>
<% } %>
<td>
<% if (queue.owner_pid_details != undefined) { %>
<%= link_conn(queue.owner_pid_details.name) %>
<% } %>
</td>
<td class="c">
<%= fmt_parameters_short(queue) %>
</td>
<td class="c"><%= fmt_idle(queue) %></td>
<td class="r"><%= fmt_string(queue.messages_ready) %></td>
<td class="r"><%= fmt_string(queue.messages_unacknowledged) %></td>
<td class="r"><%= fmt_string(queue.messages) %></td>
<% if (statistics_level == 'fine') { %>
<td class="r"><%= fmt_rate(queue.message_stats, 'publish', false) %></td>
<td class="r"><%= fmt_deliver_rate(queue.message_stats, col_redeliver) %></td>
<td class="r"><%= fmt_rate(queue.message_stats, 'ack', false) %></td>
<% } %>
</tr>
<% } %>
</tbody>
</table>
<% } else { %>
<p>... no queues ...</p>
<% } %>
</div>
</div>
<div class="section-hidden">
<h2>Add a new queue</h2>
<div class="hider">
<form action="#/queues" method="put">
<table class="form">
<% if (vhosts_interesting) { %>
<tr>
<th><label>Virtual host:</label></th>
<td>
<select name="vhost">
<% for (var i = 0; i < vhosts.length; i++) { %>
<option value="<%= fmt_string(vhosts[i].name) %>"><%= fmt_string(vhosts[i].name) %></option>
<% } %>
</select>
</td>
</tr>
<% } else { %>
<tr><td><input type="hidden" name="vhost" value="<%= fmt_string(vhosts[0].name) %>"/></td></tr>
<% } %>
<tr>
<th><label>Name:</label></th>
<td><input type="text" name="name"/><span class="mand">*</span></td>
</tr>
<tr>
<th><label>Durability:</label></th>
<td>
<select name="durable">
<option value="true">Durable</option>
<option value="false">Transient</option>
</select>
</td>
</tr>
<%
if (nodes_interesting) {
var nodes = JSON.parse(sync_get('/nodes'));
%>
<tr>
<th><label>Node:</label></th>
<td>
<select name="node">
<% for (var i = 0; i < nodes.length; i++) { %>
<option value="<%= fmt_string(nodes[i].name) %>"><%= nodes[i].name %></option>
<% } %>
</select>
</td>
</tr>
<tr>
<th>
<label for="mirroring">Mirror:</label>
</th>
<td>
<select id="mirroring" name="x-ha-policy">
<option value="">Do not mirror</option>
<option value="all">Across all nodes</option>
</select>
</td>
</tr>
<% } %>
<tr>
<th><label>Auto delete: <span class="help" id="queue-auto-delete"></span></label></th>
<td>
<select name="auto_delete">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
</td>
</tr>
<tr>
<th><label>Message TTL: <span class="help" id="queue-message-ttl"></span></label></th>
<td><input type="text" name="x-message-ttl"/> ms</td>
</tr>
<tr>
<th><label>Auto expire: <span class="help" id="queue-expires"></span></label></th>
<td><input type="text" name="x-expires"/> ms</td>
</tr>
<tr>
<th><label>Dead letter exchange: <span class="help" id="queue-dead-letter-exchange"></span></label></th>
<td><input type="text" name="x-dead-letter-exchange"/></td>
</tr>
<tr>
<th><label>Dead letter routing key: <span class="help" id="queue-dead-letter-routing-key"></span></label></th>
<td><input type="text" name="x-dead-letter-routing-key"/></td>
</tr>
<tr>
<th><label>Arguments:</label></th>
<td><span class="multifield" id="arguments"></span></td>
</tr>
</table>
<input type="submit" value="Add queue"/>
</form>
</div>
</div>
|