Skip to content

Commit c4b3daa

Browse files
Merge pull request #11382 from rabbitmq/mergify/bp/v3.13.x/pr-11381
Add number of cores used by RabbitMQ nodes to the management overview. (backport #11381)
2 parents 2757803 + e2f8014 commit c4b3daa

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

deps/rabbitmq_management/priv/www/api/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,12 +2007,6 @@ <h2>/api/nodes</h2>
20072007
Number of Erlang processes in use.
20082008
</td>
20092009
</tr>
2010-
<tr>
2011-
<td><code>processors</code></td>
2012-
<td>
2013-
Number of cores detected and usable by Erlang.
2014-
</td>
2015-
</tr>
20162010
<tr>
20172011
<td><code>queue_index_journal_write_count</code></td>
20182012
<td>
@@ -2083,6 +2077,12 @@ <h2>/api/nodes</h2>
20832077
Time since the Erlang VM started, in milliseconds.
20842078
</td>
20852079
</tr>
2080+
<tr>
2081+
<td><code>processors</code></td>
2082+
<td>
2083+
Number of logical CPU cores used by RabbitMQ.
2084+
</td>
2085+
</tr>
20862086
</table>
20872087

20882088
<h2>/api/nodes/(name)</h2>

deps/rabbitmq_management/priv/www/js/global.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ var ALL_COLUMNS =
141141
['memory', 'Memory', true],
142142
['disk_space', 'Disk space', true]],
143143
'General': [['uptime', 'Uptime', true],
144+
['cores', 'Cores', true],
144145
['info', 'Info', true],
145146
['reset_stats', 'Reset stats', true]]}};
146147

deps/rabbitmq_management/priv/www/js/tmpl/node.ejs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,16 @@
2323
<th>Uptime</th>
2424
<td><%= fmt_uptime(node.uptime) %></td>
2525
</tr>
26+
<tr>
27+
<th>Cores</th>
28+
<td><%= fmt_string(node.processors) %></td>
29+
</tr>
2630
<% if (rabbit_versions_interesting) { %>
2731
<tr>
2832
<th>RabbitMQ Version</th>
2933
<td><%= fmt_rabbit_version(node.applications) %></td>
3034
</tr>
3135
<% } %>
32-
<tr>
33-
<th>Type</th>
34-
<td>
35-
<% if (node.type == 'disc') { %>
36-
<abbr title="Broker definitions are held on disc.">Disc</abbr>
37-
<% } else { %>
38-
<abbr title="Broker definitions are held in RAM. Messages will still be written to disc if necessary.">RAM</abbr>
39-
<% } %>
40-
</td>
41-
</tr>
4236
<tr>
4337
<th>
4438
<a href="https://www.rabbitmq.com/configure.html" target="_blank">Config file</a>

deps/rabbitmq_management/priv/www/js/tmpl/overview.ejs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@
9999
<% if (show_column('overview', 'uptime')) { %>
100100
<th>Uptime</th>
101101
<% } %>
102+
<% if (show_column('overview', 'cores')) { %>
103+
<th>Cores</th>
104+
<% } %>
102105
<% if (show_column('overview', 'info')) { %>
103106
<th>Info</th>
104107
<% } %>
@@ -188,17 +191,15 @@
188191
<% if (show_column('overview', 'uptime')) { %>
189192
<td><span><%= fmt_uptime(node.uptime) %></span></td>
190193
<% } %>
194+
<% if (show_column('overview', 'cores')) { %>
195+
<td><span><%= fmt_string(node.processors) %></span></td>
196+
<% } %>
191197
<% if (show_column('overview', 'info')) { %>
192198
<td>
193199
<% if (node.being_drained) { %>
194200
<abbr class="status-yellow" title="Node was put under maintenance">maintenance mode</abbr>
195201
<% } %>
196202
<abbr title="Message rates"><%= fmt_string(node.rates_mode) %></abbr>
197-
<% if (node.type == 'disc') { %>
198-
<abbr title="Broker definitions are held on disc.">disc</abbr>
199-
<% } else { %>
200-
<abbr title="Broker definitions are held in RAM. Messages will still be written to disc if necessary.">RAM</abbr>
201-
<% } %>
202203
<%= fmt_plugins_small(node) %>
203204
<abbr title="Memory calculation strategy"><%= fmt_string(node.mem_calculation_strategy) %></abbr>
204205
</td>

0 commit comments

Comments
 (0)