MCPcopy
hub / github.com/prometheus/prometheus / CircularExemplarStorage

Struct CircularExemplarStorage

tsdb/exemplar.go:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36)
37
38type CircularExemplarStorage struct {
39 lock sync.RWMutex
40 exemplars []circularBufferEntry
41 nextIndex int
42 metrics *ExemplarMetrics
43 oooTimeWindowMillis int64
44
45 // Map of series labels as a string to index entry, which points to the first
46 // and last exemplar for the series in the exemplars circular buffer.
47 index map[string]*indexEntry
48}
49
50type indexEntry struct {
51 oldest int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected