2
0

summary_en.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <div>
  2. <div class="accordion">
  3. <div class="accordion-group">
  4. <div class="accordion-heading" sc-collapse="in">
  5. <a class="accordion-toggle" href="javascript:void(0)">
  6. SRS Summary
  7. </a>
  8. </div>
  9. <div id="collapseOne" class="accordion-body collapse">
  10. <div class="accordion-inner">
  11. <div class="row">
  12. <div class="span3">
  13. <table class="table table-bordered" ng-if="server">
  14. <tr>
  15. <th colspan="2">SRS/{{server.version}}</th>
  16. </tr>
  17. <tr>
  18. <td>Alive</td>
  19. <td>{{server.srs_uptime| sc_filter_time}}</td>
  20. </tr>
  21. <tr>
  22. <td>CPU</td>
  23. <td>{{server.cpu_percent| sc_filter_percentf}} / {{system.cpus_online| sc_filter_percentf}}</td>
  24. </tr>
  25. <tr>
  26. <td>Memory</td>
  27. <td>
  28. {{server.mem_percent| sc_filter_percentf2}}
  29. {{server.mem_kbyte| sc_filter_filesize_k2}} / {{system.mem_ram_kbyte| sc_filter_filesize_k2}}
  30. </td>
  31. </tr>
  32. <tr>
  33. <td>Network</td>
  34. <td>
  35. <span title="SRS Connections">{{system.conn_srs}}</span> /
  36. <span title="SRS Inbound Bandwidth">{{kbps.in.srs| sc_filter_bitrate_k2}}</span> /
  37. <span title="SRS Outbound Bandwidth">{{kbps.out.srs| sc_filter_bitrate_k2}}</span>
  38. </td>
  39. </tr>
  40. </table>
  41. </div>
  42. <div class="span3">
  43. <table class="table table-bordered" ng-if="system">
  44. <tr>
  45. <th colspan="2">OS System</th>
  46. </tr>
  47. <tr>
  48. <td>Alive</td>
  49. <td>{{system.uptime| sc_filter_time}}</td>
  50. </tr>
  51. <tr>
  52. <td>CPU</td>
  53. <td>{{system.cpu_percent * system.cpus_online| sc_filter_percentf}} / {{system.cpus_online| sc_filter_percentf}}</td>
  54. </tr>
  55. <tr>
  56. <td>Memory</td>
  57. <td>
  58. {{system.mem_ram_percent| sc_filter_percentf2}}
  59. {{system.mem_ram_kbyte * system.mem_ram_percent| sc_filter_filesize_k2}} / {{system.mem_ram_kbyte| sc_filter_filesize_k2}}
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>Load</td>
  64. <td>{{system.load_1m| sc_filter_number}} / {{system.load_5m| sc_filter_number}} / {{system.load_15m| sc_filter_number}}</td>
  65. </tr>
  66. </table>
  67. </div>
  68. <div class="span3">
  69. <table class="table table-bordered" ng-if="system">
  70. <tr>
  71. <th colspan="2">IO Load</th>
  72. </tr>
  73. <tr>
  74. <td>Internet</td>
  75. <td>
  76. <span title="Internet Inbound Bandwidth">{{kbps.in.sys| sc_filter_bitrate_k2}}</span> /
  77. <span title="Internet Outbound Bandwidth">{{kbps.out.sys| sc_filter_bitrate_k2}}</span>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td>Intranet</td>
  82. <td>
  83. <span title="Intranet Inbound Bandwidth">{{kbps.in.inner| sc_filter_bitrate_k2}}</span> /
  84. <span title="Intranet Outbound Bandwidth">{{kbps.out.inner| sc_filter_bitrate_k2}}</span>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td title="Connections">Conns</td>
  89. <td>
  90. <span title="System">{{system.conn_sys}}</span>
  91. <span title="System ESTABLISHED">{{system.conn_sys_et}}</span>
  92. <span title="System TIME_WAIT">{{system.conn_sys_tw}}</span>
  93. <span title="System UDP Bind Ports">{{system.conn_sys_udp}}</span>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>Disk</td>
  98. <td>
  99. <span title="IO Busy">{{system.disk_busy_percent| sc_filter_percentf2}}</span>
  100. <span title="Disk Read in Bps">{{system.disk_read_KBps| sc_filter_filerate_k2}}</span>
  101. <span title="Disk Write in Bps">{{system.disk_write_KBps| sc_filter_filerate_k2}}</span>
  102. </td>
  103. </tr>
  104. </table>
  105. </div>
  106. <div class="span2">
  107. <table class="table table-bordered" ng-if="system">
  108. <tr>
  109. <th colspan="2">Others</th>
  110. </tr>
  111. <tr>
  112. <td title="System CPU Usage">CPU</td>
  113. <td>
  114. <span title="Number of CPU">{{system.cpus}}</span> /
  115. <span title="Online CPUs">{{system.cpus_online}}</span>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td title="PID of SRS">PID</td>
  120. <td>{{server.pid}}</td>
  121. </tr>
  122. <tr>
  123. <td title="PID of SRS's Parent">PPID</td>
  124. <td>{{server.ppid}}</td>
  125. </tr>
  126. <tr>
  127. <td title="Whether SRS API Ready?">Ready</td>
  128. <td>{{global.ok| sc_filter_yesno}}</td>
  129. </tr>
  130. </table>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>