File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -380,13 +380,13 @@ func (h *constHistogram) Write(out *dto.Metric) error {
380
380
return nil
381
381
}
382
382
383
- // NewConstHistogram returns a metric representing a Prometheus histogram with fixed
384
- // values for the count, sum, and quantiles . As those parameters cannot be
385
- // changed, the returned value does not implement the Histogram interface (but
386
- // only the Metric interface). Users of this package will not have much use for
387
- // it in regular operations. However, when implementing custom Collectors, it is
388
- // useful as a throw-away metric that is generated on the fly to send it to
389
- // Prometheus in the Collect method.
383
+ // NewConstHistogram returns a metric representing a Prometheus histogram with
384
+ // fixed values for the count, sum, and bucket counts . As those parameters
385
+ // cannot be changed, the returned value does not implement the Histogram
386
+ // interface (but only the Metric interface). Users of this package will not
387
+ // have much use for it in regular operations. However, when implementing custom
388
+ // Collectors, it is useful as a throw-away metric that is generated on the fly
389
+ // to send it to Prometheus in the Collect method.
390
390
//
391
391
// buckets is a map of upper bounds to cumulative counts, excluding the +Inf
392
392
// bucket.
You can’t perform that action at this time.
0 commit comments