Skip to content

Commit

Permalink
Elastic: fix memory (show heap) and cluster selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Craver committed Sep 20, 2017
1 parent 158292f commit b4116d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Opserver/Views/Elastic/AllClusters.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,21 @@
{
<td class="text-muted">n/a</td>
}
@if (stats?.JVM?.Memory!= null)
{
<td>@stats.JVM.Memory.HeapCommittedInBytes.ToSize()</td>
}
else
{
<td class="text-muted">n/a</td>
}
@if (stats?.Process?.Memory != null)
{
<td>@stats.Process.Memory.ResidentInBytes.ToSize()</td>
<td>@stats.Process.Memory.TotalVirtualInBytes.ToSize()</td>
}
else
{
<td class="text-muted">n/a</td>
<td class="text-muted">n/a</td>
}
@if (stats?.Process != null)
{
Expand Down
2 changes: 1 addition & 1 deletion Opserver/Views/Elastic/Cluster.Selector.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
var nodeInfos = c.Nodes.SafeData(true).Nodes;
if (nodeInfos == null) { continue; }
var info = nodeInfos.FirstOrDefault();
<a class="list-group-item" href="[email protected]()">
<a class="list-group-item" href="[email protected]()&[email protected]">
@c.IconSpan() @c.Name
<span class="badge">@nodeInfos.Count.Pluralize("node") - @(info?.Version.ToString() ?? "")</span>
</a>
Expand Down

0 comments on commit b4116d9

Please sign in to comment.