@@ -116,25 +116,25 @@ func (e *Prometheus) Cleanup(cleanupFunc interface{}) {
116116}
117117
118118func (e * Prometheus ) addCounter (fullMetricName string , mInfo * metrics.Preprocessed ) prometheus.Collector {
119- counter := prometheus .NewCounterVec (prometheus.CounterOpts {Name : fullMetricName , Help : "" }, mInfo .TargetLabels ())
119+ counter := prometheus .NewCounterVec (prometheus.CounterOpts {Name : fullMetricName , Help : mInfo . Help }, mInfo .TargetLabels ())
120120 e .metricCommon .AddCounter (fullMetricName , counter , mInfo )
121121 return counter
122122}
123123
124124func (e * Prometheus ) addGauge (fullMetricName string , mInfo * metrics.Preprocessed ) prometheus.Collector {
125- gauge := prometheus .NewGaugeVec (prometheus.GaugeOpts {Name : fullMetricName , Help : "" }, mInfo .TargetLabels ())
125+ gauge := prometheus .NewGaugeVec (prometheus.GaugeOpts {Name : fullMetricName , Help : mInfo . Help }, mInfo .TargetLabels ())
126126 e .metricCommon .AddGauge (fullMetricName , gauge , mInfo )
127127 return gauge
128128}
129129
130130func (e * Prometheus ) addHistogram (fullMetricName string , mInfo * metrics.Preprocessed ) prometheus.Collector {
131- histogram := prometheus .NewHistogramVec (prometheus.HistogramOpts {Name : fullMetricName , Help : "" }, mInfo .TargetLabels ())
131+ histogram := prometheus .NewHistogramVec (prometheus.HistogramOpts {Name : fullMetricName , Help : mInfo . Help }, mInfo .TargetLabels ())
132132 e .metricCommon .AddHist (fullMetricName , histogram , mInfo )
133133 return histogram
134134}
135135
136136func (e * Prometheus ) addAgghistogram (fullMetricName string , mInfo * metrics.Preprocessed ) prometheus.Collector {
137- agghistogram := prometheus .NewHistogramVec (prometheus.HistogramOpts {Name : fullMetricName , Help : "" }, mInfo .TargetLabels ())
137+ agghistogram := prometheus .NewHistogramVec (prometheus.HistogramOpts {Name : fullMetricName , Help : mInfo . Help }, mInfo .TargetLabels ())
138138 e .metricCommon .AddAggHist (fullMetricName , agghistogram , mInfo )
139139 return agghistogram
140140}
0 commit comments