Skip to content

Commit

Permalink
Merge pull request #214 from oliver006/oh_treat_err_as_failure
Browse files Browse the repository at this point in the history
treat string "err" as failure and return zero for gauge
  • Loading branch information
oliver006 committed Dec 20, 2018
2 parents 46c1470 + 4d03541 commit e77a1bd
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 e77a1bd

Please sign in to comment.