{{ define "settings" }} {{ $description := "Targets are definitions of what will be monitored. This can include webpages, servers, anything. You can also use discovery mechanisem to automatically add targets from Kubernetes, Docker, Terraform, DNS and other sources." }} {{ $length := len .Targets }} {{ if eq $length 0 }}

There are no targets yet.

{{ $description }}

Add Manual Target Add Auto Discovered Targets
{{ else }}
{{ range .TargetGroups }} {{ $currentGroup := . }} {{ range $group, $targets := $.Targets }} {{ if eq $group $currentGroup }} {{ range $targets }} {{ end }} {{ end }} {{ end }} {{ end }}
List of Targets

{{ $description }}

Create New
Target Group Name Visibility State Action
{{ . }}
{{ .Name }} {{ if eq .Visibility "PUBLIC" }} Public {{ else if eq .Visibility "PRIVATE" }} Private {{ else }} Unknown {{ end }} {{ if eq .State "ACTIVE" }} ACTIVE {{ else if eq .State "PAUSED" }} PAUSED {{ else }} UNKNOWN {{ end }} Details
{{ end }} {{ end }}