mailgun

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group added in v0.0.3

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

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

func New

func New(group *groupcache.Group) *Group

New creates a new Group.

func (*Group) CacheHits added in v0.0.3

func (g *Group) CacheHits() int64

CacheHits represents either cache was good

func (*Group) GetFromPeersLatencyLower added in v0.0.3

func (g *Group) GetFromPeersLatencyLower() int64

GetFromPeersLatencyLower represents slowest duration to request value from peers

func (*Group) Gets added in v0.0.3

func (g *Group) Gets() int64

Gets represents any Get request, including from peers

func (*Group) HotCacheBytes added in v0.0.3

func (g *Group) HotCacheBytes() int64

HotCacheBytes represents number of bytes in the hot cache

func (*Group) HotCacheEvictions added in v0.0.3

func (g *Group) HotCacheEvictions() int64

HotCacheEvictions represents number of evictions in the hot cache

func (*Group) HotCacheGets added in v0.0.3

func (g *Group) HotCacheGets() int64

HotCacheGets represents number of get requests in the hot cache

func (*Group) HotCacheHits added in v0.0.3

func (g *Group) HotCacheHits() int64

HotCacheHits represents number of hit in the hot cache

func (*Group) HotCacheItems added in v0.0.3

func (g *Group) HotCacheItems() int64

HotCacheItems represents number of items in the main cache

func (*Group) Loads added in v0.0.3

func (g *Group) Loads() int64

Loads represents (gets - cacheHits)

func (*Group) LoadsDeduped added in v0.0.3

func (g *Group) LoadsDeduped() int64

LoadsDeduped represents after singleflight

func (*Group) LocalLoadErrs added in v0.0.3

func (g *Group) LocalLoadErrs() int64

LocalLoadErrs represents total bad local loads

func (*Group) LocalLoads added in v0.0.3

func (g *Group) LocalLoads() int64

LocalLoads represents total good local loads

func (*Group) MainCacheBytes added in v0.0.3

func (g *Group) MainCacheBytes() int64

MainCacheBytes represents number of bytes in the main cache

func (*Group) MainCacheEvictions added in v0.0.3

func (g *Group) MainCacheEvictions() int64

MainCacheEvictions represents number of evictions in the main cache

func (*Group) MainCacheGets added in v0.0.3

func (g *Group) MainCacheGets() int64

MainCacheGets represents number of get requests in the main cache

func (*Group) MainCacheHits added in v0.0.3

func (g *Group) MainCacheHits() int64

MainCacheHits represents number of hit in the main cache

func (*Group) MainCacheItems added in v0.0.3

func (g *Group) MainCacheItems() int64

MainCacheItems represents number of items in the main cache

func (*Group) Name added in v0.0.3

func (g *Group) Name() string

Name returns the group's name

func (*Group) PeerErrors added in v0.0.3

func (g *Group) PeerErrors() int64

PeerErrors represents a count of errors from peers

func (*Group) PeerLoads added in v0.0.3

func (g *Group) PeerLoads() int64

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

func (*Group) ServerRequests added in v0.0.3

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