package master_ui import ( "html/template" ) var StatusTpl = template.Must(template.New("status").Parse(` SeaweedFS {{ .Version }}

Cluster status

{{ with .RaftServer }} {{ end }}
Volume Size Limit {{ .VolumeSizeLimitMB }}MB
Free {{ .Topology.Free }}
Max {{ .Topology.Max }}
Leader {{ .Leader }}
Other Masters

System Stats

{{ range $key, $val := .Stats }} {{ end }}
Concurrent Connections {{ .Counters.Connections.WeekCounter.Sum }}
{{ $key }} {{ $val }}

Topology

{{ range $dc_index, $dc := .Topology.DataCenters }} {{ range $rack_index, $rack := $dc.Racks }} {{ range $dn_index, $dn := $rack.DataNodes }} {{ end }} {{ end }} {{ end }}
Data Center Rack RemoteAddr #Volumes Volume Ids #ErasureCodingShards Max
{{ $dc.Id }} {{ $rack.Id }} {{ $dn.Url }} {{ if ne $dn.PublicUrl $dn.Url }} / {{ $dn.PublicUrl }} {{ end }} {{ $dn.Volumes }} {{ $dn.VolumeIds}} {{ $dn.EcShards }} {{ $dn.Max }}
`))