Add miissing classic queue stats template
This commit is contained in:
		
							parent
							
								
									ea0c35dc73
								
							
						
					
					
						commit
						8e67098f42
					
				|  | @ -0,0 +1,94 @@ | |||
|     <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> | ||||
|       <% } %> | ||||
|       <tr> | ||||
|         <th>Consumer capacity <span class="help" id="queue-consumer-capacity"></th> | ||||
|         <td><%= fmt_percent(queue.consumer_capacity) %></td> | ||||
|       </tr> | ||||
|       <% if(queue.hasOwnProperty('publishers')) { %> | ||||
|       <tr> | ||||
|         <th>Publishers</th> | ||||
|         <td><%= fmt_string(queue.publishers) %></td> | ||||
|       </tr> | ||||
|       <% } %> | ||||
|     </table> | ||||
| 
 | ||||
|     <table class="facts"> | ||||
|       <tr> | ||||
|         <td></td> | ||||
|         <th class="horizontal">Total</th> | ||||
|         <th class="horizontal">Ready</th> | ||||
|         <th class="horizontal">Unacked</th> | ||||
|         <th class="horizontal">In memory</th> | ||||
|         <th class="horizontal">Persistent</th> | ||||
|         <th class="horizontal">Transient, Paged Out</th> | ||||
|       </tr> | ||||
|       <tr> | ||||
|         <th> | ||||
|           Messages | ||||
|           <span class="help" id="queue-messages"></span> | ||||
|         </th> | ||||
|         <td class="r"> | ||||
|           <%= fmt_num_thousands(queue.messages) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_num_thousands(queue.messages_ready) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_num_thousands(queue.messages_unacknowledged) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_num_thousands(queue.messages_ram) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_num_thousands(queue.messages_persistent) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_num_thousands(queue.messages_paged_out) %> | ||||
|         </td> | ||||
|       </tr> | ||||
|       <tr> | ||||
|         <th> | ||||
|           Message body bytes | ||||
|           <span class="help" id="queue-message-body-bytes"></span> | ||||
|         </th> | ||||
|         <td class="r"> | ||||
|           <%= fmt_bytes(queue.message_bytes) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_bytes(queue.message_bytes_ready) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_bytes(queue.message_bytes_unacknowledged) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_bytes(queue.message_bytes_ram) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_bytes(queue.message_bytes_persistent) %> | ||||
|         </td> | ||||
|         <td class="r"> | ||||
|           <%= fmt_bytes(queue.message_bytes_paged_out) %> | ||||
|         </td> | ||||
|       </tr> | ||||
|       <tr> | ||||
|         <th> | ||||
|           Process memory | ||||
|           <span class="help" id="queue-process-memory"></span> | ||||
|         </th> | ||||
|         <td class="r"><%= fmt_bytes(queue.memory) %></td> | ||||
|       </tr> | ||||
|     </table> | ||||
		Loading…
	
		Reference in New Issue