{{define "app_availability"}}{{template "top" .}} {{if .Flash}}{{end}} {{if .FlashErr}}{{end}} {{template "appnav" .}} {{template "lognav" .}}

Availability

{{if .ErrsErr}}{{end}}

Requests an instance could not answer — a 502, 503 or 504 — grouped by cause rather than by page, and the platform's own events about the instance: failed wakes and exits. A 500 is the app answering, and stays on Errors. A visitor who left within five seconds is not counted; one who gave up after waiting longer is. Counts are to the nearest flush.

{{if .ErrFP}} {{with .ErrWin.Records}}

Occurrences

All causes

{{if $.ErrWin.Truncated}}

Showing the newest {{len $.ErrWin.Records}} occurrences of a larger window — narrow the window, or use carlos availability for all of them.

{{end}} {{range .}}
{{if .Release}}{{end}} {{if .Path}}{{end}}
Last{{.Last.UTC.Format "2006-01-02 15:04:05"}}
Count{{.Count}}
Host{{.Host}}
Release{{.Release}}
Path{{.Path}}{{if gt .Count 1}} (the first of these {{.Count}}){{end}}
What happened{{.Name}}
Logsaround this time
{{end}} {{else}}

No occurrences of this cause in the window.

{{end}} {{else if .ErrWin.Groups}} {{if .ErrWin.Truncated}}

Showing {{len .ErrWin.Groups}} causes of a larger window — counts are within what was read. Narrow the window, or use carlos availability for all of them.

{{end}}
{{range .ErrWin.Groups}}{{end}}
Last seenFirst seenCountFromWhat happenedHostsReleases
{{.Last.UTC.Format "2006-01-02 15:04"}} {{.First.UTC.Format "2006-01-02 15:04"}} {{.Count}}{{if eq .FP "_overflow"}} (overflow){{end}} {{if eq .Source "log"}}platform{{if .Level}} {{.Level}}{{end}}{{else}}{{.Source}}{{end}} {{.Name}} {{range $i, $h := .Hosts}}{{if $i}}, {{end}}{{$h}}{{end}} {{range $i, $r := .Releases}}{{if $i}}, {{end}}{{$r}}{{end}}

Times are UTC. The same view from a terminal: carlos availability --app {{.AppName}} --since {{.ErrSince}}.

{{else if not .ErrsErr}}

No availability problems in this window.

The same view from a terminal: carlos availability --app {{.AppName}}.

{{end}} {{template "bottom" .}}{{end}}