Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) FixupQueryTime ¶
type CacheKeyGenerator ¶
type CacheKeyGenerator struct { }
func (*CacheKeyGenerator) GenerateCacheKey ¶
func (k *CacheKeyGenerator) GenerateCacheKey(req *model.ObservaTracePromRequest) 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, query *prompb.ReadResponse) *prompb.ReadResponse
func (*RemoteReadQueryCache) Get ¶
func (s *RemoteReadQueryCache) Get(req *prompb.ReadRequest) (*prompb.ReadResponse, CacheHit, string, int64, int64)
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.