Improvements after review.
This commit is contained in:
parent
70419a3485
commit
c8a7ccf663
|
@ -380,13 +380,13 @@ func (h *constHistogram) Write(out *dto.Metric) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewConstHistogram returns a metric representing a Prometheus histogram with fixed
|
// NewConstHistogram returns a metric representing a Prometheus histogram with
|
||||||
// values for the count, sum, and quantiles. As those parameters cannot be
|
// fixed values for the count, sum, and bucket counts. As those parameters
|
||||||
// changed, the returned value does not implement the Histogram interface (but
|
// cannot be changed, the returned value does not implement the Histogram
|
||||||
// only the Metric interface). Users of this package will not have much use for
|
// interface (but only the Metric interface). Users of this package will not
|
||||||
// it in regular operations. However, when implementing custom Collectors, it is
|
// have much use for it in regular operations. However, when implementing custom
|
||||||
// useful as a throw-away metric that is generated on the fly to send it to
|
// Collectors, it is useful as a throw-away metric that is generated on the fly
|
||||||
// Prometheus in the Collect method.
|
// to send it to Prometheus in the Collect method.
|
||||||
//
|
//
|
||||||
// buckets is a map of upper bounds to cumulative counts, excluding the +Inf
|
// buckets is a map of upper bounds to cumulative counts, excluding the +Inf
|
||||||
// bucket.
|
// bucket.
|
||||||
|
|
Loading…
Reference in New Issue