google

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package google implements an adapter to extract metrics from google groupcache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	// contains filtered or unexported fields
}

Group implements interface GroupStatistics to extract metrics from google groupcache group.

func New

func New(group *groupcache.Group) *Group

New creates a new Group.

func (*Group) CacheHits

func (g *Group) CacheHits() int64

CacheHits represents either cache was good

func (*Group) GetFromPeersLatencyLower

func (g *Group) GetFromPeersLatencyLower() int64

GetFromPeersLatencyLower represents slowest duration to request value from peers

func (*Group) Gets

func (g *Group) Gets() int64

Gets represents any Get request, including from peers

func (*Group) HotCacheBytes

func (g *Group) HotCacheBytes() int64

HotCacheBytes represents number of bytes in the hot cache

func (*Group) HotCacheEvictions

func (g *Group) HotCacheEvictions() int64

HotCacheEvictions represents number of evictions in the hot cache

func (*Group) HotCacheGets

func (g *Group) HotCacheGets() int64

HotCacheGets represents number of get requests in the hot cache

func (*Group) HotCacheHits

func (g *Group) HotCacheHits() int64

HotCacheHits represents number of hit in the hot cache

func (*Group) HotCacheItems

func (g *Group) HotCacheItems() int64

HotCacheItems represents number of items in the main cache

func (*Group) Loads

func (g *Group) Loads() int64

Loads represents (gets - cacheHits)

func (*Group) LoadsDeduped

func (g *Group) LoadsDeduped() int64

LoadsDeduped represents after singleflight

func (*Group) LocalLoadErrs

func (g *Group) LocalLoadErrs() int64

LocalLoadErrs represents total bad local loads

func (*Group) LocalLoads

func (g *Group) LocalLoads() int64

LocalLoads represents total good local loads

func (*Group) MainCacheBytes

func (g *Group) MainCacheBytes() int64

MainCacheBytes represents number of bytes in the main cache

func (*Group) MainCacheEvictions

func (g *Group) MainCacheEvictions() int64

MainCacheEvictions represents number of evictions in the main cache

func (*Group) MainCacheGets

func (g *Group) MainCacheGets() int64

MainCacheGets represents number of get requests in the main cache

func (*Group) MainCacheHits

func (g *Group) MainCacheHits() int64

MainCacheHits represents number of hit in the main cache

func (*Group) MainCacheItems

func (g *Group) MainCacheItems() int64

MainCacheItems represents number of items in the main cache

func (*Group) Name

func (g *Group) Name() string

Name returns the group's name

func (*Group) PeerErrors

func (g *Group) PeerErrors() int64

PeerErrors represents a count of errors from peers

func (*Group) PeerLoads

func (g *Group) PeerLoads() int64

PeerLoads represents either remote load or remote cache hit (not an error)

func (*Group) ServerRequests

func (g *Group) ServerRequests() int64

ServerRequests represents gets that came over the network from peers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL