MCPcopy
hub / github.com/prometheus/prometheus / Append

Method Append

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

Append adds a sample pair for the given series. An optional series reference can be provided to accelerate calls. A series reference number is returned which can be used to add further samples to the given series in the same or later transactions. Returned reference numbers are ephemeral and may be

(ref SeriesRef, l labels.Labels, t int64, v float64)

Source from the content-addressed store, hash-verified

418 // reference number.
419 // If the reference is 0 it must not be used for caching.
420 Append(ref SeriesRef, l labels.Labels, t int64, v float64) (SeriesRef, error)
421
422 // SetOptions configures the appender with specific append options such as
423 // discarding out-of-order samples even if out-of-order is enabled in the TSDB.

Callers 15

AppendMethod · 0.65
AppendMethod · 0.65
IteratorMethod · 0.65
TestFanout_SelectSortedFunction · 0.65
TestFanoutAppenderFunction · 0.65
TestFanoutAppenderV2Function · 0.65
AppendMethod · 0.65
appendV1SamplesMethod · 0.65
appendV2Method · 0.65

Calls

no outgoing calls

Tested by 15

TestFanout_SelectSortedFunction · 0.52
TestFanoutAppenderFunction · 0.52
TestFanoutAppenderV2Function · 0.52
TestSampleDeliveryFunction · 0.52
TestWALMetadataDeliveryFunction · 0.52
TestSampleDeliveryOrderFunction · 0.52
TestShutdownFunction · 0.52