Skip to content

Commit

Permalink
treat string "err" as failure and return zero for gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 committed Dec 20, 2018
1 parent 46c1470 commit 4d03541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func (e *Exporter) extractInfoMetrics(info, addr string, alias string, scrapes c
case "ok":
val = 1

case "fail":
case "err", "fail":
val = 0

default:
Expand Down

0 comments on commit 4d03541

Please sign in to comment.