forked from mirror/client_golang
Document implications of negative observations
Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
parent
a7515ca7c9
commit
f34145a85e
|
@ -47,7 +47,12 @@ type Histogram interface {
|
||||||
Metric
|
Metric
|
||||||
Collector
|
Collector
|
||||||
|
|
||||||
// Observe adds a single observation to the histogram.
|
// Observe adds a single observation to the histogram. Observations are
|
||||||
|
// usually positive or zero. Negative observations are accepted but
|
||||||
|
// prevent current versions of Prometheus from properly detecting
|
||||||
|
// counter resets in the sum of observations. See
|
||||||
|
// https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations
|
||||||
|
// for details.
|
||||||
Observe(float64)
|
Observe(float64)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,12 @@ type Summary interface {
|
||||||
Metric
|
Metric
|
||||||
Collector
|
Collector
|
||||||
|
|
||||||
// Observe adds a single observation to the summary.
|
// Observe adds a single observation to the summary. Observations are
|
||||||
|
// usually positive or zero. Negative observations are accepted but
|
||||||
|
// prevent current versions of Prometheus from properly detecting
|
||||||
|
// counter resets in the sum of observations. See
|
||||||
|
// https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations
|
||||||
|
// for details.
|
||||||
Observe(float64)
|
Observe(float64)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue