package master_ui
import (
"html/template"
)
var StatusTpl = template.Must(template.New("status").Parse(`
SeaweedFS {{ .Version }}
Cluster status
Volume Size Limit |
{{ .VolumeSizeLimitMB }}MB |
Free |
{{ .Topology.Free }} |
Max |
{{ .Topology.Max }} |
{{ with .RaftServer }}
Leader |
{{ .Leader }} |
Other Masters |
|
{{ end }}
System Stats
Concurrent Connections |
{{ .Counters.Connections.WeekCounter.Sum }} |
{{ range $key, $val := .Stats }}
{{ $key }} |
{{ $val }} |
{{ end }}
Topology
Data Center |
Rack |
RemoteAddr |
#Volumes |
Volume Ids |
#ErasureCodingShards |
Max |
{{ range $dc_index, $dc := .Topology.DataCenters }}
{{ range $rack_index, $rack := $dc.Racks }}
{{ range $dn_index, $dn := $rack.DataNodes }}
{{ $dc.Id }} |
{{ $rack.Id }} |
{{ $dn.Url }}
{{ if ne $dn.PublicUrl $dn.Url }}
/ {{ $dn.PublicUrl }}
{{ end }}
|
{{ $dn.Volumes }} |
{{ $dn.VolumeIds}} |
{{ $dn.EcShards }} |
{{ $dn.Max }} |
{{ end }}
{{ end }}
{{ end }}
`))