Only send the pid in the overview, it's not that interesting.
This commit is contained in:
parent
dffbd7b05d
commit
b6f012a57a
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<table class="facts">
|
<table class="facts">
|
||||||
<tr><th>node</th><td><%= node %></td></tr>
|
<tr><th>node</th><td><%= node %></td></tr>
|
||||||
<tr><th>pid</th><td><%= pid %></td></tr>
|
<tr><th>pid</th><td><%= os_pid %></td></tr>
|
||||||
<tr><th>bound to</th><td><%= bound_to %></td></tr>
|
<tr><th>bound to</th><td><%= bound_to %></td></tr>
|
||||||
<tr><th>file descriptors</th><td class="<%= fmt_color(fd_used / fd_total) %>"><%= fd_used %> / <%= fd_total %> <sub>(used/available)</span></td></tr>
|
<tr><th>file descriptors</th><td class="<%= fmt_color(fd_used / fd_total) %>"><%= fd_used %> / <%= fd_total %> <sub>(used/available)</span></td></tr>
|
||||||
<tr><th>erlang processes</th><td class="<%= fmt_color(proc_used / proc_total) %>"><%= proc_used %> / <%= proc_total %> <sub>(used/available)</td></tr>
|
<tr><th>erlang processes</th><td class="<%= fmt_color(proc_used / proc_total) %>"><%= proc_used %> / <%= proc_total %> <sub>(used/available)</td></tr>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
encode(Facts) ->
|
encode(Facts) ->
|
||||||
mochijson2:encode({struct,
|
mochijson2:encode({struct,
|
||||||
[{node, node()},
|
[{node, node()},
|
||||||
{pid, list_to_binary(os:getpid())},
|
|
||||||
{datetime, list_to_binary(
|
{datetime, list_to_binary(
|
||||||
rabbit_management_util:http_date())}
|
rabbit_management_util:http_date())}
|
||||||
] ++ Facts}).
|
] ++ Facts}).
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,8 @@ to_json(ReqData, Context) ->
|
||||||
Overview = rabbit_management_stats:get_overview(),
|
Overview = rabbit_management_stats:get_overview(),
|
||||||
{rabbit_management_format:encode(
|
{rabbit_management_format:encode(
|
||||||
OSStats ++ Overview ++
|
OSStats ++ Overview ++
|
||||||
[{mem_ets, erlang:memory(ets)},
|
[{os_pid, list_to_binary(os:getpid())},
|
||||||
|
{mem_ets, erlang:memory(ets)},
|
||||||
{mem_binary, erlang:memory(binary)}]),
|
{mem_binary, erlang:memory(binary)}]),
|
||||||
ReqData, Context}.
|
ReqData, Context}.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue