diff --git a/web/ui/templates/status.html b/web/ui/templates/status.html index 91e31f020e..bf5d2ba73b 100644 --- a/web/ui/templates/status.html +++ b/web/ui/templates/status.html @@ -99,14 +99,14 @@ Number Of Series Number of Chunks - Current Max Time Current Min Time + Current Max Time {{ .NumSeries}} - {{.ChunkCount}} - {{ .MaxTime}} - {{ .MinTime}} + {{.ChunkCount}} + {{ .MinTime | unixToTime }} ({{ .MinTime }}) + {{ .MaxTime | unixToTime }} ({{ .MaxTime }}) @@ -121,7 +121,7 @@ {{ range .Stats.CardinalityLabelStats }} {{.Name}} - {{.Count}} + {{.Count}} {{end}} @@ -136,7 +136,7 @@ {{ range .Stats.CardinalityMetricsStats }} {{.Name}} - {{.Count}} + {{.Count}} {{end}} @@ -151,11 +151,11 @@ {{ range .Stats.LabelValueStats }} {{.Name}} - {{.Count}} + {{.Count}} {{end}} - +

Most Common Label Pairs

@@ -166,10 +166,10 @@ {{ range .Stats.LabelValuePairsStats }} - + {{end}} -
{{.Name}}{{.Count}}{{.Count}}
+ {{end}} diff --git a/web/web.go b/web/web.go index 1cd308f813..87b597510e 100644 --- a/web/web.go +++ b/web/web.go @@ -982,6 +982,10 @@ func tmplFuncs(consolesPath string, opts *Options) template_text.FuncMap { "since": func(t time.Time) time.Duration { return time.Since(t) / time.Millisecond * time.Millisecond }, + "unixToTime": func(i int64) time.Time { + t := time.Unix(i/int64(time.Microsecond), 0).UTC() + return t + }, "consolesPath": func() string { return consolesPath }, "pathPrefix": func() string { return opts.ExternalURL.Path }, "pageTitle": func() string { return opts.PageTitle },