You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
4.0 KiB

3 years ago
3 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>SeaweedFS {{ .Version }}</title>
  5. <link rel="stylesheet" href="/seaweedfsstatic/bootstrap/3.3.1/css/bootstrap.min.css">
  6. </head>
  7. <body>
  8. <div class="container">
  9. <div class="page-header">
  10. <h1>
  11. <a href="https://github.com/chrislusf/seaweedfs"><img src="/seaweedfsstatic/seaweed50x50.png"></img></a>
  12. SeaweedFS <small>{{ .Version }}</small>
  13. </h1>
  14. </div>
  15. <div class="row">
  16. <div class="col-sm-6">
  17. <h2>Cluster status</h2>
  18. <table class="table table-condensed table-striped">
  19. <tbody>
  20. <tr>
  21. <th>Volume Size Limit</th>
  22. <td>{{ .VolumeSizeLimitMB }}MB</td>
  23. </tr>
  24. <tr>
  25. <th>Free</th>
  26. <td>{{ .Topology.Free }}</td>
  27. </tr>
  28. <tr>
  29. <th>Max</th>
  30. <td>{{ .Topology.Max }}</td>
  31. </tr>
  32. {{ with .RaftServer }}
  33. <tr>
  34. <th>Leader</th>
  35. <td><a href="http://{{ .Leader }}">{{ .Leader }}</a></td>
  36. </tr>
  37. <tr>
  38. <th>Other Masters</th>
  39. <td class="col-sm-5">
  40. <ul class="list-unstyled">
  41. {{ range $k, $p := .GetConfiguration.Configuration.Servers }}
  42. <li><a href="http://{{ $p.ID }}/ui/index.html">{{ $p.ID }}</a></li>
  43. {{ end }}
  44. </ul>
  45. </td>
  46. </tr>
  47. {{ end }}
  48. </tbody>
  49. </table>
  50. </div>
  51. <div class="col-sm-6">
  52. <h2>System Stats</h2>
  53. <table class="table table-condensed table-striped">
  54. <tr>
  55. <th>Concurrent Connections</th>
  56. <td>{{ .Counters.Connections.WeekCounter.Sum }}</td>
  57. </tr>
  58. {{ range $key, $val := .Stats }}
  59. <tr>
  60. <th>{{ $key }}</th>
  61. <td>{{ $val }}</td>
  62. </tr>
  63. {{ end }}
  64. </table>
  65. <h2>Raft Stats</h2>
  66. <table class="table table-condensed table-striped">
  67. <tr>
  68. <th>applied_index</th>
  69. <td>{{ .RaftServer.Stats.applied_index }}</td>
  70. </tr>
  71. <tr>
  72. <th>last_log_term</th>
  73. <td>{{ .RaftServer.Stats.last_log_term }}</td>
  74. </tr>
  75. </table>
  76. </div>
  77. </div>
  78. <div class="row">
  79. <h2>Topology</h2>
  80. <table class="table table-striped">
  81. <thead>
  82. <tr>
  83. <th>Data Center</th>
  84. <th>Rack</th>
  85. <th>RemoteAddr</th>
  86. <th>#Volumes</th>
  87. <th>Volume Ids</th>
  88. <th>#ErasureCodingShards</th>
  89. <th>Max</th>
  90. </tr>
  91. </thead>
  92. <tbody>
  93. {{ range $dc_index, $dc := .Topology.DataCenters }}
  94. {{ range $rack_index, $rack := $dc.Racks }}
  95. {{ range $dn_index, $dn := $rack.DataNodes }}
  96. <tr>
  97. <td><code>{{ $dc.Id }}</code></td>
  98. <td>{{ $rack.Id }}</td>
  99. <td><a href="http://{{ $dn.Url }}/ui/index.html">{{ $dn.Url }}</a>
  100. {{ if ne $dn.PublicUrl $dn.Url }}
  101. / <a href="http://{{ $dn.PublicUrl }}/ui/index.html">{{ $dn.PublicUrl }}</a>
  102. {{ end }}
  103. </td>
  104. <td>{{ $dn.Volumes }}</td>
  105. <td>{{ $dn.VolumeIds}}</td>
  106. <td>{{ $dn.EcShards }}</td>
  107. <td>{{ $dn.Max }}</td>
  108. </tr>
  109. {{ end }}
  110. {{ end }}
  111. {{ end }}
  112. </tbody>
  113. </table>
  114. </div>
  115. </div>
  116. </body>
  117. </html>