module.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <kibana-panel ng-controller='bbuzz' ng-init="init()">
  2. <table class="table table-condensed" style="vertical-align: middle">
  3. <tr ng-style="cluster_color(cluster.status)">
  4. <td>
  5. <span style="font-size:2.5em;line-height:50px">
  6. <strong>Cluster:</strong> {{cluster.cluster_name}}
  7. </span>
  8. </td>
  9. <td></td>
  10. <td style="text-align:right;vertical-align:middle">
  11. <form class="input-append" style="text-align:right">
  12. <input ng-model="settings.replicas" type="number" class="input-mini">
  13. <button class="btn btn-info" ng-click="set_replicas(settings.replicas)"><i class="icon-copy"></i></button>
  14. </form>
  15. </td>
  16. </tr>
  17. <tr ng-style="cluster_color('nothing')" style="vertical-align:middle" ng-repeat="(name,node) in nodes.info">
  18. <td style='font-size:1.5em;vertical-align:middle'>
  19. <img style='font-size:1.5em;width:25px;height:25px;border-radius:20px;border:1px solid #000;margin-right: 10px' src="{{bbuzz.picture(node.transport_address)}}">
  20. {{node.name}} / {{bbuzz.ip_address(node.transport_address)}}
  21. </td>
  22. <td>
  23. P
  24. <div ng-repeat='(index,shards) in nodes.routing[name]' bs-tooltip="index" style='display:inline-block;'>
  25. <div ng-repeat='shard in primary(shards,true)' ng-class='shard_class(shard.state)' style='display:inline-block;font-size:7pt;line-height:10px;width:10px;height:10px;border-radius:10px;color:#fff;text-align:center;background:{{bbuzz.index_color(index)}};border:0px;margin-right: 2px'></div>
  26. </div>
  27. <br>
  28. R
  29. <div ng-repeat='(index,shards) in nodes.routing[name]' bs-tooltip="index" style='display:inline-block;'>
  30. <div ng-repeat='shard in primary(shards,false)' ng-class='shard_class(shard.state)' style='display:inline-block;font-size:7pt;line-height:10px;width:10px;height:10px;border-radius:10px;color:#fff;text-align:center;background:{{bbuzz.index_color(index)}};border:0px;margin-right: 2px'></div>
  31. </div><br>
  32. </td>
  33. <td style="text-align: right;vertical-align: middle">
  34. <button ng-click="node_mode(bbuzz.ip_address(node.transport_address),'stop')" style="font-size:1.5em; margin-right:30px" class='icon-signout btn btn-danger'></button>
  35. </td>
  36. </tr>
  37. </table>
  38. <table style="vertical-align: middle" ng-show="nodes.dead.length > 0" class='table table-condensed'>
  39. <tr ng-style="cluster_color('red')">
  40. <td colspan='100'>
  41. <span style="line-height:15px">
  42. Missing nodes
  43. </span>
  44. </td>
  45. </tr>
  46. <tr ng-style="cluster_color('nothing')" ng-repeat="name in nodes.dead">
  47. <td colspan="2">
  48. <img style='width:30px;height:30px;border-radius:30px;border:2px solid #000;margin-right: 10px' src="{{bbuzz.picture(name)}}">
  49. {{bbuzz.ip_address(name)}} {{nodes.status[name]}}
  50. </td>
  51. <td style="text-align: right">
  52. <button ng-click="node_mode(bbuzz.ip_address(name),'start')" style="font-size:1.5em; margin-right:30px" class='icon-signin btn btn-info'></button>
  53. </td>
  54. </tr>
  55. </table>
  56. </kibana-panel>