Skip to content

Commit

Permalink
fix: health color in table output
Browse files Browse the repository at this point in the history
  • Loading branch information
zbindenren committed Apr 12, 2021
1 parent 9cbb4f6 commit 4e45916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/prometheus/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ func (t Target) Header() []string {
// Row represents a target row.
func (t Target) Row() []string {
health := t.Health
col := color.New(color.FgRed).SprintFunc()
col := color.New(color.FgGreen).SprintFunc()

if health == v1.HealthBad {
col = color.New(color.FgGreen).SprintFunc()
col = color.New(color.FgRed).SprintFunc()
}

if health == v1.HealthUnknown {
Expand Down

0 comments on commit 4e45916

Please sign in to comment.