{{define "head"}} {{end}} {{define "content"}}

Targets

{{range $job, $pool := .TargetPools}} {{$healthy := numHealthy $pool}} {{$total := len $pool}}

{{$job}} ({{$healthy}}/{{$total}} up)

{{range $pool}} {{end}}
Endpoint State Labels Last Scrape Error
{{.URL.Scheme}}://{{.URL.Host}}{{.URL.Path}}
{{range $label, $values := .URL.Query }} {{range $i, $value := $values}} {{$label}}="{{$value}}" {{end}} {{end}}
{{.Health}} {{$labels := stripLabels .Labels.Map "job"}} {{range $label, $value := $labels}} {{$label}}="{{$value}}" {{else}} none {{end}} {{if .LastScrape.IsZero}}Never{{else}}{{since .LastScrape}} ago{{end}} {{if .LastError}} {{.LastError}} {{end}}
{{ end }}
{{end}}