From c8a7ccf663c8cb4c1f000be49f0fdd6456bc1109 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Mon, 4 May 2015 13:13:06 +0200 Subject: [PATCH] Improvements after review. --- prometheus/histogram.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/prometheus/histogram.go b/prometheus/histogram.go index eb531e2..27e9c5f 100644 --- a/prometheus/histogram.go +++ b/prometheus/histogram.go @@ -380,13 +380,13 @@ func (h *constHistogram) Write(out *dto.Metric) error { return nil } -// NewConstHistogram returns a metric representing a Prometheus histogram with fixed -// values for the count, sum, and quantiles. As those parameters cannot be -// changed, the returned value does not implement the Histogram interface (but -// only the Metric interface). Users of this package will not have much use for -// it in regular operations. However, when implementing custom Collectors, it is -// useful as a throw-away metric that is generated on the fly to send it to -// Prometheus in the Collect method. +// NewConstHistogram returns a metric representing a Prometheus histogram with +// fixed values for the count, sum, and bucket counts. As those parameters +// cannot be changed, the returned value does not implement the Histogram +// interface (but only the Metric interface). Users of this package will not +// have much use for it in regular operations. However, when implementing custom +// Collectors, it is useful as a throw-away metric that is generated on the fly +// to send it to Prometheus in the Collect method. // // buckets is a map of upper bounds to cumulative counts, excluding the +Inf // bucket.