29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
<div ng-controller='marvel.cluster' ng-init='init()'>
|
|
<style>
|
|
.marvel-cluster-health {
|
|
padding: 0px 5px;
|
|
}
|
|
</style>
|
|
|
|
<ul class="inline">
|
|
<li><strong>Name:</strong> {{data.cluster_name}}</li>
|
|
<li><strong ng-class="healthClass(data.status,true)">Status:</strong> <span ng-class="healthClass(data.status)">{{data.status}}</span></li>
|
|
<li><strong>Nodes:</strong> {{data.nodes.count.total}}</li>
|
|
<li><strong>Indices:</strong> {{data.indices.count}}</li>
|
|
<li><strong>Shards:</strong> {{data.indices.shards.total}}</li>
|
|
<li><strong>Data:</strong> {{data.indices.store.size_in_bytes|formatBytes:0}}</li>
|
|
<li><strong>CPU:</strong> {{data.nodes.process.cpu.percent|formatNumber:0}}%</li>
|
|
<li><strong>Memory:</strong> {{data.nodes.jvm.mem.heap_used_in_bytes|formatBytes:0}} / {{data.nodes.jvm.mem.heap_max_in_bytes|formatBytes:0}}</li>
|
|
<li><strong>Up time:</strong> {{data.nodes.jvm.max_uptime_in_millis|formatTime:1}}</li>
|
|
|
|
<li>
|
|
<span class="strong" ng-show="data.nodes.versions.length == 1">Version:</span>
|
|
<span class="strong" ng-show="data.nodes.versions.length > 1">Versions:</span>
|
|
|
|
<span ng-repeat='version in data.nodes.versions'>
|
|
{{version}}<span ng-hide='$last'>, </span>
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
|
|
</div> |