Skip to content
Snippets Groups Projects
Unverified Commit e77a1bdd authored by Oliver's avatar Oliver Committed by GitHub
Browse files

Merge pull request #214 from oliver006/oh_treat_err_as_failure

treat string "err" as failure and return zero for gauge
parents 46c14700 4d03541e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment