Documentation ¶
Overview ¶
Package google implements an adapter to extract metrics from google groupcache.
Index ¶
- type Group
- func (g *Group) CacheHits() int64
- func (g *Group) GetFromPeersLatencyLower() int64
- func (g *Group) Gets() int64
- func (g *Group) HotCacheBytes() int64
- func (g *Group) HotCacheEvictions() int64
- func (g *Group) HotCacheGets() int64
- func (g *Group) HotCacheHits() int64
- func (g *Group) HotCacheItems() int64
- func (g *Group) Loads() int64
- func (g *Group) LoadsDeduped() int64
- func (g *Group) LocalLoadErrs() int64
- func (g *Group) LocalLoads() int64
- func (g *Group) MainCacheBytes() int64
- func (g *Group) MainCacheEvictions() int64
- func (g *Group) MainCacheGets() int64
- func (g *Group) MainCacheHits() int64
- func (g *Group) MainCacheItems() int64
- func (g *Group) Name() string
- func (g *Group) PeerErrors() int64
- func (g *Group) PeerLoads() int64
- func (g *Group) ServerRequests() int64
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 (*Group) GetFromPeersLatencyLower ¶
GetFromPeersLatencyLower represents slowest duration to request value from peers
func (*Group) HotCacheBytes ¶
HotCacheBytes represents number of bytes in the hot cache
func (*Group) HotCacheEvictions ¶
HotCacheEvictions represents number of evictions in the hot cache
func (*Group) HotCacheGets ¶
HotCacheGets represents number of get requests in the hot cache
func (*Group) HotCacheHits ¶
HotCacheHits represents number of hit in the hot cache
func (*Group) HotCacheItems ¶
HotCacheItems represents number of items in the main cache
func (*Group) LoadsDeduped ¶
LoadsDeduped represents after singleflight
func (*Group) LocalLoadErrs ¶
LocalLoadErrs represents total bad local loads
func (*Group) LocalLoads ¶
LocalLoads represents total good local loads
func (*Group) MainCacheBytes ¶
MainCacheBytes represents number of bytes in the main cache
func (*Group) MainCacheEvictions ¶
MainCacheEvictions represents number of evictions in the main cache
func (*Group) MainCacheGets ¶
MainCacheGets represents number of get requests in the main cache
func (*Group) MainCacheHits ¶
MainCacheHits represents number of hit in the main cache
func (*Group) MainCacheItems ¶
MainCacheItems represents number of items in the main cache
func (*Group) PeerErrors ¶
PeerErrors represents a count of errors from peers
func (*Group) PeerLoads ¶
PeerLoads represents either remote load or remote cache hit (not an error)
func (*Group) ServerRequests ¶
ServerRequests represents gets that came over the network from peers