examples: Adjust doc comment for native histograms
Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
parent
4e71e6ff20
commit
58a8ca4588
|
@ -53,10 +53,17 @@ func main() {
|
||||||
},
|
},
|
||||||
[]string{"service"},
|
[]string{"service"},
|
||||||
)
|
)
|
||||||
// The same as above, but now as a histogram, and only for the normal
|
// The same as above, but now as a histogram, and only for the
|
||||||
// distribution. The buckets are targeted to the parameters of the
|
// normal distribution. The histogram features both conventional
|
||||||
// normal distribution, with 20 buckets centered on the mean, each
|
// buckets as well as sparse buckets, the latter needed for the
|
||||||
// half-sigma wide.
|
// experimental native histograms (ingested by a Prometheus
|
||||||
|
// server v2.40 with the corresponding feature flag
|
||||||
|
// enabled). The conventional buckets are targeted to the
|
||||||
|
// parameters of the normal distribution, with 20 buckets
|
||||||
|
// centered on the mean, each half-sigma wide. The sparse
|
||||||
|
// buckets are always centered on zero, with a growth factor of
|
||||||
|
// one bucket to the text of (at most) 1.1. (The precise factor
|
||||||
|
// is 2^2^-3 = 1.0905077...)
|
||||||
rpcDurationsHistogram = prometheus.NewHistogram(prometheus.HistogramOpts{
|
rpcDurationsHistogram = prometheus.NewHistogram(prometheus.HistogramOpts{
|
||||||
Name: "rpc_durations_histogram_seconds",
|
Name: "rpc_durations_histogram_seconds",
|
||||||
Help: "RPC latency distributions.",
|
Help: "RPC latency distributions.",
|
||||||
|
|
Loading…
Reference in New Issue