Documentation
¶
Index ¶
- func MemHashString(str string) uint64
- func NewCachedBlockChunkQuerier(cache ExpandedPostingsCache, b prom_tsdb.BlockReader, mint, maxt int64) (storage.ChunkQuerier, error)
- type BlocksPostingsForMatchersCache
- func (c *BlocksPostingsForMatchersCache) ExpireSeries(metric labels.Labels)
- func (c *BlocksPostingsForMatchersCache) PostCreation(metric labels.Labels)
- func (c *BlocksPostingsForMatchersCache) PostDeletion(metrics map[chunks.HeadSeriesRef]labels.Labels)
- func (c *BlocksPostingsForMatchersCache) PostingsForMatchers(ctx context.Context, blockID ulid.ULID, ix tsdb.IndexReader, ...) (index.Postings, error)
- func (c *BlocksPostingsForMatchersCache) PreCreation(labels.Labels) error
- type ExpandedPostingsCache
- type ExpandedPostingsCacheMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MemHashString ¶
func NewCachedBlockChunkQuerier ¶
func NewCachedBlockChunkQuerier(cache ExpandedPostingsCache, b prom_tsdb.BlockReader, mint, maxt int64) (storage.ChunkQuerier, error)
Types ¶
type BlocksPostingsForMatchersCache ¶
type BlocksPostingsForMatchersCache struct {
// contains filtered or unexported fields
}
func NewBlocksPostingsForMatchersCache ¶
func NewBlocksPostingsForMatchersCache(metrics ExpandedPostingsCacheMetrics, headExpandedPostingsCacheSize uint64, blockExpandedPostingsCacheSize uint64, seedSize int64) *BlocksPostingsForMatchersCache
func (*BlocksPostingsForMatchersCache) ExpireSeries ¶
func (c *BlocksPostingsForMatchersCache) ExpireSeries(metric labels.Labels)
func (*BlocksPostingsForMatchersCache) PostCreation ¶
func (c *BlocksPostingsForMatchersCache) PostCreation(metric labels.Labels)
func (*BlocksPostingsForMatchersCache) PostDeletion ¶
func (c *BlocksPostingsForMatchersCache) PostDeletion(metrics map[chunks.HeadSeriesRef]labels.Labels)
func (*BlocksPostingsForMatchersCache) PostingsForMatchers ¶
func (*BlocksPostingsForMatchersCache) PreCreation ¶
func (c *BlocksPostingsForMatchersCache) PreCreation(labels.Labels) error
type ExpandedPostingsCache ¶
type ExpandedPostingsCacheMetrics ¶
type ExpandedPostingsCacheMetrics struct {
CacheRequests *prometheus.CounterVec
CacheHits *prometheus.CounterVec
CacheEvicts *prometheus.CounterVec
NonCacheableQueries *prometheus.CounterVec
}
func NewPostingCacheMetrics ¶
func NewPostingCacheMetrics(r prometheus.Registerer) ExpandedPostingsCacheMetrics
Click to show internal directories.
Click to hide internal directories.