Skip to content

Commit

Permalink
add empty help text to be compatible with prometheus >= 2.3.1 (oliver…
Browse files Browse the repository at this point in the history
…006#175)

* add empty help text to be compatible with prometheus >= 2.3.1
  • Loading branch information
carlo-blohm authored and oliver006 committed Jul 3, 2018
1 parent 3150962 commit 3e15af2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ func (e *Exporter) setMetrics(scrapes <-chan scrapeResult) {
e.metrics[name] = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: e.namespace,
Name: name,
Help: name + "metric", // needs to be set for prometheus >= 2.3.1
}, []string{"addr", "alias"})
e.metricsMtx.Unlock()
}
Expand Down

0 comments on commit 3e15af2

Please sign in to comment.