Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasUnsymbolizedProfiles ¶
TODO: move into the symbolizer package when available
func WriteProfiles ¶
func WriteProfiles(metrics *HeadMetrics, profiles []v1.InMemoryProfile) ([]byte, error)
Types ¶
type FlushedHead ¶
type FlushedHead struct {
Index []byte
Profiles []byte
Symbols []byte
Unsymbolized bool
Meta struct {
ProfileTypeNames []string
MinTimeNanos int64
MaxTimeNanos int64
NumSamples uint64
NumProfiles uint64
NumSeries uint64
}
// contains filtered or unexported fields
}
func (*FlushedHead) WriteDatasetIndex ¶ added in v2.1.0
func (f *FlushedHead) WriteDatasetIndex(w datasetIndexWriter, idx uint32)
WriteDatasetIndex feeds the flushed head's series (labels + fingerprint) into the given dataset index writer, attributing every series to the supplied dataset index (the dataset's global position in the block). It is safe to call concurrently with other heads' writes only if the writer itself is externally synchronised; segment flushes call it serially in dataset (tenant+service) order.
type Head ¶
type Head struct {
// contains filtered or unexported fields
}
func NewHead ¶
func NewHead(metrics *HeadMetrics) *Head
type HeadMetrics ¶
type HeadMetrics struct {
// contains filtered or unexported fields
}
todo remove unused
func NewHeadMetricsWithPrefix ¶
func NewHeadMetricsWithPrefix(reg prometheus.Registerer, prefix string) *HeadMetrics
Click to show internal directories.
Click to hide internal directories.