Skip to content

Commit

Permalink
use strKey
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 committed Mar 14, 2020
1 parent 6ed6c10 commit c03fb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ func (e *Exporter) extractConfigMetrics(ch chan<- prometheus.Metric, config []st
}

if val, err := strconv.ParseFloat(strVal, 64); err == nil {
e.registerConstMetricGauge(ch, fmt.Sprintf("config_%s", config[pos*2]), val)
e.registerConstMetricGauge(ch, fmt.Sprintf("config_%s", strKey), val)
}
}
return
Expand Down

0 comments on commit c03fb49

Please sign in to comment.