From 07beddb11bc25b424d611a464740481091e52d67 Mon Sep 17 00:00:00 2001 From: elubow Date: Thu, 25 Apr 2013 00:18:32 -0400 Subject: [PATCH] Added table headers to channel table for disambiguation of gauges and counters --- nsqadmin/templates/channel.html | 144 +++++++++++++++++--------------- 1 file changed, 78 insertions(+), 66 deletions(-) diff --git a/nsqadmin/templates/channel.html b/nsqadmin/templates/channel.html index c2c23c90a..2e722a867 100644 --- a/nsqadmin/templates/channel.html +++ b/nsqadmin/templates/channel.html @@ -59,78 +59,90 @@

Notice

No producers exist for this topic/channel.
-

Channel Message Queue

+

Channel

- - - - - - - - - - {{if $g.Enabled}}{{end}} - - + + + + + {{if $g.Enabled}} + + {{else}} + + {{end}} + + + + + + + + + + + {{if $g.Enabled}}{{end}} + + + + {{range $c := .ChannelStats.HostStats}} - - - - - - - - - - {{if $g.Enabled}} {{end}} - - - {{if $g.Enabled}} - - - - - - - - - - - - - {{end}} + + + + + + + + + + {{if $g.Enabled}} {{end}} + + + {{if $g.Enabled}} + + + + + + + + + + + + + {{end}} {{ end }} {{ with $c := .ChannelStats }} - - - - - - - - - - {{if $g.Enabled}} {{end}} - - - {{if $g.Enabled}} - - - - - - - - - - - - - {{end}} - + + + + + + + + + + {{if $g.Enabled}} {{end}} + + + {{if $g.Enabled}} + + + + + + + + + + + + + {{end}} + {{ end }}
HostDepthMemory + DiskIn-FlightDeferredRequeuedTimed OutMessagesRateConnections
 Message QueuesStatisticsStatistics
HostDepthMemory + DiskIn-FlightDeferredRequeuedTimed OutMessagesRateConnections
{{$c.HostAddress}}{{if $c.Paused}} paused{{end}}{{$c.Depth | commafy}}{{$c.MemoryDepth | commafy}} + {{$c.BackendDepth | commafy}}{{$c.InFlightCount | commafy}}{{$c.DeferredCount | commafy}}{{$c.RequeueCount | commafy}}{{$c.TimeoutCount | commafy}}{{$c.MessageCount | commafy}}{{$c.ClientCount}}
{{$c.HostAddress}}{{if $c.Paused}} paused{{end}}{{$c.Depth | commafy}}{{$c.MemoryDepth | commafy}} + {{$c.BackendDepth | commafy}}{{$c.InFlightCount | commafy}}{{$c.DeferredCount | commafy}}{{$c.RequeueCount | commafy}}{{$c.TimeoutCount | commafy}}{{$c.MessageCount | commafy}}{{$c.ClientCount}}
Total:{{$c.Depth | commafy}}{{$c.MemoryDepth | commafy}} + {{$c.BackendDepth | commafy}}{{$c.InFlightCount | commafy}}{{$c.DeferredCount | commafy}}{{$c.RequeueCount | commafy}}{{$c.TimeoutCount | commafy}}{{$c.MessageCount | commafy}}{{$c.ClientCount}}
Total:{{$c.Depth | commafy}}{{$c.MemoryDepth | commafy}} + {{$c.BackendDepth | commafy}}{{$c.InFlightCount | commafy}}{{$c.DeferredCount | commafy}}{{$c.RequeueCount | commafy}}{{$c.TimeoutCount | commafy}}{{$c.MessageCount | commafy}}{{$c.ClientCount}}