Documentation ¶
Index ¶
- func GetMetricFromLabelMatcher(matchers *[]*prompb.LabelMatcher) string
- func GetPromRequestQueryTime(q *prompb.Query) (int64, int64)
- type CacheCounter
- type CacheHit
- type CacheItem
- func (c *CacheItem) Data() *prompb.ReadResponse
- func (c *CacheItem) FixupQueryTime(start int64, end int64) (int64, int64)
- func (c *CacheItem) GetLoadCompleteSignal() chan struct{}
- func (c *CacheItem) Hit(start int64, end int64) CacheHit
- func (c *CacheItem) Range() int64
- func (c *CacheItem) Size() uint64
- type CacheKeyGenerator
- type CacheStats
- type Cacher
- type HardKeyGenerator
- type RemoteReadQueryCache
- func (s *RemoteReadQueryCache) AddOrMerge(req *prompb.ReadRequest, resp *prompb.ReadResponse, orgFilter string, ...) *prompb.ReadResponse
- func (s *RemoteReadQueryCache) Get(req *prompb.Query, start int64, end int64, orgFilter string, ...) (*CacheItem, CacheHit, int64, int64)
- func (s *RemoteReadQueryCache) Remove(req *prompb.ReadRequest, orgFilter string, extraFilter string)
- type WeakKeyGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetricFromLabelMatcher ¶
func GetMetricFromLabelMatcher(matchers *[]*prompb.LabelMatcher) string
Types ¶
type CacheCounter ¶
type CacheCounter struct { Stats *CacheStats *sync.Mutex // contains filtered or unexported fields }
func (*CacheCounter) Close ¶
func (c *CacheCounter) Close()
func (*CacheCounter) Closed ¶
func (c *CacheCounter) Closed() bool
func (*CacheCounter) GetCounter ¶
func (c *CacheCounter) GetCounter() interface{}
type CacheItem ¶
type CacheItem struct {
// contains filtered or unexported fields
}
func (*CacheItem) Data ¶
func (c *CacheItem) Data() *prompb.ReadResponse
func (*CacheItem) FixupQueryTime ¶
func (*CacheItem) GetLoadCompleteSignal ¶
func (c *CacheItem) GetLoadCompleteSignal() chan struct{}
type CacheKeyGenerator ¶
type CacheKeyGenerator struct { }
func (*CacheKeyGenerator) GenerateCacheKey ¶
func (k *CacheKeyGenerator) GenerateCacheKey(req *model.DeepFlowPromRequest) string
generate key without query time (start/end) for cache query
type CacheStats ¶
type Cacher ¶
type Cacher struct {
// contains filtered or unexported fields
}
type HardKeyGenerator ¶
type HardKeyGenerator struct { }
func (*HardKeyGenerator) GenerateRequestKey ¶
func (h *HardKeyGenerator) GenerateRequestKey(q model.QueryRequest) string
hard consistency for QueryHint match cache data
type RemoteReadQueryCache ¶
type RemoteReadQueryCache struct {
// contains filtered or unexported fields
}
func NewRemoteReadQueryCache ¶
func NewRemoteReadQueryCache() *RemoteReadQueryCache
func PromReadResponseCache ¶
func PromReadResponseCache() *RemoteReadQueryCache
func (*RemoteReadQueryCache) AddOrMerge ¶
func (s *RemoteReadQueryCache) AddOrMerge(req *prompb.ReadRequest, resp *prompb.ReadResponse, orgFilter string, extraFilters string) *prompb.ReadResponse
func (*RemoteReadQueryCache) Remove ¶
func (s *RemoteReadQueryCache) Remove(req *prompb.ReadRequest, orgFilter string, extraFilter string)
type WeakKeyGenerator ¶
type WeakKeyGenerator struct { }
func (*WeakKeyGenerator) GenerateRequestKey ¶
func (w *WeakKeyGenerator) GenerateRequestKey(q model.QueryRequest) string
weak consistency for match QueryHint & Prometheus Hint
Click to show internal directories.
Click to hide internal directories.