MCPcopy
hub / github.com/prometheus/prometheus / AppendHistogram

Method AppendHistogram

storage/interface.go:478–478  ·  view source on GitHub ↗

AppendHistogram adds a histogram for the given series labels. An optional reference number can be provided to accelerate calls. A reference number is returned which can be used to add further histograms in the same or later transactions. Returned reference numbers are ephemeral and may be rejected i

(ref SeriesRef, l labels.Labels, t int64, h *histogram.Histogram, fh *histogram.FloatHistogram)

Source from the content-addressed store, hash-verified

476 // pointer. AppendHistogram won't mutate the histogram, but in turn
477 // depends on the caller to not mutate it either.
478 AppendHistogram(ref SeriesRef, l labels.Labels, t int64, h *histogram.Histogram, fh *histogram.FloatHistogram) (SeriesRef, error)
479 // AppendHistogramSTZeroSample adds synthetic zero sample for the given st timestamp,
480 // which will be associated with given series, labels and the incoming
481 // sample's t (timestamp). AppendHistogramSTZeroSample returns error if zero sample can't be

Callers 14

AppendHistogramMethod · 0.65
IteratorMethod · 0.65
TestFanoutAppenderFunction · 0.65
appendV1HistogramsMethod · 0.65
appendV2Method · 0.65
AppendHistogramMethod · 0.65
AppendHistogramMethod · 0.65
AppendHistogramMethod · 0.65
AppendHistogramMethod · 0.65
appendMethod · 0.65
TestBucketLimitAppenderFunction · 0.65

Implementers 8

initAppendertsdb/head_append.go
headAppendertsdb/head_append.go
appendertsdb/agent/db.go
fanoutAppenderstorage/fanout.go
mockAppendablestorage/remote/write_handler_test.go
timestampTrackerstorage/remote/write.go
notReadyAppendercmd/prometheus/main.go
appenderutil/teststorage/appender.go

Calls

no outgoing calls

Tested by 5

TestFanoutAppenderFunction · 0.52
TestBucketLimitAppenderFunction · 0.52
TestMaxSchemaAppenderFunction · 0.52