243 lines
6.6 KiB
Plaintext
243 lines
6.6 KiB
Plaintext
<h1>Node <b><%= node.name %></b></h1>
|
|
|
|
<div class="section">
|
|
<h2>Overview</h2>
|
|
<div class="hider updatable">
|
|
<% if (!node.running) { %>
|
|
<p class="warning">Node not running</p>
|
|
<% } else if (node.os_pid == undefined) { %>
|
|
<p class="warning">Node statistics not available</p>
|
|
<% } else { %>
|
|
|
|
<div class="box">
|
|
<table class="facts facts-l">
|
|
<tr>
|
|
<th>Uptime</th>
|
|
<td><%= fmt_uptime(node.uptime) %></td>
|
|
</tr>
|
|
<% if (rabbit_versions_interesting) { %>
|
|
<tr>
|
|
<th>RabbitMQ Version</th>
|
|
<td><%= fmt_rabbit_version(node.applications) %></td>
|
|
</tr>
|
|
<% } %>
|
|
<tr>
|
|
<th>Type</th>
|
|
<td>
|
|
<% if (node.type == 'disc') { %>
|
|
<acronym title="Broker definitions are held on disc.">Disc</acronym>
|
|
<% } else { %>
|
|
<acronym title="Broker definitions are held in RAM. Messages will still be written to disc if necessary.">RAM</acronym>
|
|
<% } %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<%= format('paths', {node: node}) %>
|
|
</div>
|
|
|
|
<h3>Plugins <span class="help" id="plugins"></span></h3>
|
|
<table class="list">
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Version</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
<%
|
|
var plugins = get_plugins_list(node);
|
|
for (var j = 0; j < plugins.length; j++) {
|
|
var application = plugins[j];
|
|
%>
|
|
<tr<%= alt_rows(j)%>>
|
|
<td><%= application.name %></td>
|
|
<td><%= application.version %></td>
|
|
<td><%= application.description %></td>
|
|
</tr>
|
|
<% } %>
|
|
</table>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h2>Process Statistics</h2>
|
|
<div class="hider">
|
|
<% if (!node.running) { %>
|
|
<p class="warning">Node not running</p>
|
|
<% } else if (node.os_pid == undefined) { %>
|
|
<p class="warning">Node statistics not available</p>
|
|
<% } else { %>
|
|
<%= node_stats_prefs() %>
|
|
<div class="updatable">
|
|
<table class="facts">
|
|
<tr>
|
|
<th>
|
|
File descriptors <span class="help" id="file-descriptors"></span>
|
|
</th>
|
|
<td>
|
|
<% if (node.fd_used != 'install_handle_from_sysinternals') { %>
|
|
<%= node_stat_count('fd_used', 'fd_total', node, FD_THRESHOLDS) %>
|
|
<% } else { %>
|
|
<p class="c">handle.exe missing <span class="help" id="handle-exe"></span><sub><%= node.fd_total %> available</sub></p>
|
|
|
|
<% } %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
Socket descriptors <span class="help" id="socket-descriptors"></span>
|
|
</th>
|
|
<td>
|
|
<%= node_stat_count('sockets_used', 'sockets_total', node, FD_THRESHOLDS) %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
Erlang processes
|
|
</th>
|
|
<td>
|
|
<%= node_stat_count('proc_used', 'proc_total', node, PROCESS_THRESHOLDS) %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
Memory
|
|
</th>
|
|
<td>
|
|
<% if (node.mem_limit != 'memory_monitoring_disabled') { %>
|
|
<%= node_stat('mem_used', 'Used', 'mem_limit', 'high watermark', node,
|
|
fmt_bytes, fmt_bytes_axis,
|
|
node.mem_alarm ? 'red' : 'green',
|
|
node.mem_alarm ? 'memory-alarm' : null) %>
|
|
<% } else { %>
|
|
<%= fmt_bytes(node.mem_used) %>
|
|
<% } %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
Disk space
|
|
</th>
|
|
<td>
|
|
<% if (node.disk_free_limit != 'disk_free_monitoring_disabled') { %>
|
|
<%= node_stat('disk_free', 'Free', 'disk_free_limit', 'low watermark', node,
|
|
fmt_bytes, fmt_bytes_axis,
|
|
node.disk_free_alarm ? 'red' : 'green',
|
|
node.disk_free_alarm ? 'disk_free-alarm' : null,
|
|
true) %>
|
|
<% } else { %>
|
|
(not available)
|
|
<% } %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h2>I/O Statistics</h2>
|
|
<div class="hider">
|
|
<% if (!node.running) { %>
|
|
<p class="warning">Node not running</p>
|
|
<% } else if (node.os_pid == undefined) { %>
|
|
<p class="warning">Node statistics not available</p>
|
|
<% } else { %>
|
|
<%= rates_chart_or_text('persister-stats-count', node, [['Read', 'persister_read_count'], ['Write', 'persister_write_count'], ['Seek', 'persister_seek_count'], ['Sync', 'persister_sync_count'], ['Reopen', 'persister_reopen_count']], fmt_rate, fmt_rate_axis, true, 'Operations', 'io-operations') %>
|
|
|
|
<%= rates_chart_or_text('persister-stats-bytes', node, [['Read', 'persister_read_bytes'], ['Write', 'persister_write_bytes']], fmt_rate_bytes, fmt_rate_bytes_axis, true, 'Data rates') %>
|
|
|
|
<%= rates_chart_or_text('persister-stats-time', node, [['Read', 'persister_read_avg_time'], ['Write', 'persister_write_avg_time'], ['Seek', 'persister_seek_avg_time'], ['Sync', 'persister_sync_avg_time']], fmt_ms, fmt_ms, false, 'Average time per operation') %>
|
|
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="section">
|
|
<h2>Memory details</h2>
|
|
<div class="hider">
|
|
<div id="memory-details"></div>
|
|
<button class="update-manual memory-button" for="memory-details" query="memory">Update</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section-hidden">
|
|
<h2>Binary references</h2>
|
|
<div class="hider">
|
|
<p>
|
|
<b>Warning:</b> Calculating binary memory use can be expensive if
|
|
there are many small binaries in the system.
|
|
</p>
|
|
<div id="binary-details"></div>
|
|
<button class="update-manual memory-button" for="binary-details" query="binary">Update</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section-hidden">
|
|
<h2>Advanced</h2>
|
|
<div class="hider updatable">
|
|
<% if (!node.running) { %>
|
|
<p class="warning">Node not running</p>
|
|
<% } else if (node.os_pid == undefined) { %>
|
|
<p class="warning">Node statistics not available</p>
|
|
<% } else { %>
|
|
<div class="box">
|
|
<h3>VM</h3>
|
|
<table class="facts">
|
|
<tr>
|
|
<th>OS pid</th>
|
|
<td><%= node.os_pid %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Rates mode</th>
|
|
<td><%= node.rates_mode %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Net ticktime</th>
|
|
<td><%= node.net_ticktime %>s</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table class="facts">
|
|
<tr>
|
|
<th>Run queue</th>
|
|
<td><%= node.run_queue %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Processors</th>
|
|
<td><%= node.processors %></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<h3>All applications</h3>
|
|
<table class="list">
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Version</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
<%
|
|
for (var j = 0; j < node.applications.length; j++) {
|
|
var application = node.applications[j];
|
|
%>
|
|
<tr<%= alt_rows(j)%>>
|
|
<td><%= application.name %></td>
|
|
<td><%= application.version %></td>
|
|
<td><%= application.description %></td>
|
|
</tr>
|
|
<% } %>
|
|
</table>
|
|
|
|
<h3>Exchange types</h3>
|
|
<%= format('registry', {'list': node.exchange_types, 'node': node, 'show_enabled': false} ) %>
|
|
<h3>Authentication mechanisms</h3>
|
|
<%= format('registry', {'list': node.auth_mechanisms, 'node': node, 'show_enabled': true} ) %>
|
|
|
|
<% } %>
|
|
</div>
|
|
</div>
|