MCPcopy
hub / github.com/prometheus/prometheus / Histogram

Method Histogram

model/textparse/interface.go:44–44  ·  view source on GitHub ↗

Histogram returns the bytes of a series with a sparse histogram as a value, the timestamp if set, and the histogram in the current sample. Depending on the parsed input, the function returns an (integer) Histogram or a FloatHistogram, with the respective other return value being nil. TODO(bwplotka):

()

Source from the content-addressed store, hash-verified

42 // We already accepted in many places (PRW, proto parsing histograms) that 0 timestamp is not a
43 // a valid timestamp. If needed it can be represented as 0+1ms.
44 Histogram() ([]byte, *int64, *histogram.Histogram, *histogram.FloatHistogram)
45
46 // Help returns the metric name and help text in the current entry.
47 // Must only be called after Next returned a help entry.

Callers 15

NextMethod · 0.65
testParseFunction · 0.65
benchParseFunction · 0.65
hasDeltaFunction · 0.65
generateOTLPWriteRequestFunction · 0.65
sampleCountFunction · 0.65
TestFromMetricsFunction · 0.65
createExportRequestFunction · 0.65
aggregationTemporalityFunction · 0.65
findMinAndMaxTimestampsFunction · 0.65

Calls

no outgoing calls