Skip to content

Commit

Permalink
Fix mail template (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanga333 authored and toddpalino committed May 2, 2018
1 parent e2216d7 commit dc4cb84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/default-email.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ The Kafka consumer groups you are monitoring are currently showing problems. The

Cluster: {{.Result.Cluster}}
Group: {{.Result.Group}}
Status: {{if eq 1 .Result.Status}}OK{{else if eq 1 .Result.Status}}WARNING{{else if eq 2 .Result.Status}}ERROR{{end}}
Status: {{.Result.Status.String}}
Complete: {{.Result.Complete}}
Errors: {{len .Result.Partitions}} partitions have problems
{{range .Result.Partitions}} {{if eq 1 .Status}} OK{{if eq 2 .Status}} WARN{{else if eq 2 .Status}} ERR{{else if eq 3 .Status}} STOP{{else if eq 4 .Status}}STALL{{end}} {{.Topic}}:{{.Partition}} ({{.Start.Timestamp}}, {{.Start.Offset}}, {{.Start.Lag}}) -> ({{.End.Timestamp}}, {{.End.Offset}}, {{.End.Lag}})
{{end}}{{end}}
{{range .Result.Partitions}} {{.Status.String}} {{.Topic}}:{{.Partition}} ({{.Start.Timestamp}}, {{.Start.Offset}}, {{.Start.Lag}}) -> ({{.End.Timestamp}}, {{.End.Offset}}, {{.End.Lag}})
{{end}}

0 comments on commit dc4cb84

Please sign in to comment.