Skip to content
Snippets Groups Projects
Commit 4d03541e authored by Oliver's avatar Oliver
Browse files

treat string "err" as failure and return zero for gauge

parent 46c14700
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