MCPcopy
hub / github.com/prometheus/client_golang / Summary

Interface Summary

prometheus/summary.go:54–65  ·  prometheus/summary.go::Summary

A Summary captures individual observations from an event or sample stream and summarizes them in a manner similar to traditional summary statistics: 1. sum of observations, 2. observation count, 3. rank estimations. A typical use-case is the observation of request latencies. By default, a Summary p

Source from the content-addressed store, hash-verified

52//
53// To create Summary instances, use NewSummary.
54type Summary interface {
55 Metric
56 Collector
57
58 // Observe adds a single observation to the summary. Observations are
59 // usually positive or zero. Negative observations are accepted but
60 // prevent current versions of Prometheus from properly detecting
61 // counter resets in the sum of observations. See
62 // https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations
63 // for details.
64 Observe(float64)
65}
66
67var errQuantileLabelNotAllowed = fmt.Errorf(
68 "%q is not allowed as label name in summaries", quantileLabel,

Callers 8

benchmarkSummaryObserveFunction · 0.95
benchmarkSummaryWriteFunction · 0.95
TestSummaryConcurrencyFunction · 0.95
TestSummaryDecayFunction · 0.95
ExampleSummaryFunction · 0.95
BenchmarkSummaryNoLabelsFunction · 0.95

Implementers 3

histogramprometheus/histogram.go
summaryprometheus/summary.go
noObjectivesSummaryprometheus/summary.go

Calls

no outgoing calls

Tested by

no test coverage detected