Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataStorageMetrics ¶
type MetadataStorageMetrics struct {
ItemsCurrent uint64
CurrentSizeBytes uint64
MaxSizeBytes uint64
}
MetadataStorageMetrics contains metrics for the storage.
type Row ¶
type Row struct {
MetricFamilyName []byte
Help []byte
Unit []byte
AccountID uint32
ProjectID uint32
Type prompb.MetricType
// contains filtered or unexported fields
}
Row represents time series metadata record
func UnmarshalRows ¶
UnmarshalRows parses Rows from provided buffer according to the maxRows
returns parsed Rows and tails buffer if maxRows value was reached
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage for metrics metadata
func NewStorage ¶
NewStorage returns new initialized Storage.
func (*Storage) GetForTenant ¶
GetForTenant returns rows for the given tenant, limit and optional metricName
can only be used for cluster version
func (*Storage) MustClose ¶
func (s *Storage) MustClose()
MustClose closes the storage and waits for all background tasks to finish.
func (*Storage) UpdateMetrics ¶
func (s *Storage) UpdateMetrics(dst *MetadataStorageMetrics)
UpdateMetrics updates dst with metrics storage metrics.
Click to show internal directories.
Click to hide internal directories.