mptwemproxy

package
v0.63.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type PoolStats

type PoolStats struct {
	ClientEOF         *uint64
	ClientErr         *uint64
	ClientConnections *uint64
	ServerEjects      *uint64
	ForwardError      *uint64
	Servers           map[string]*ServerStats
}

PoolStats represents a pool stats

type ServerStats

type ServerStats struct {
	ServerEOF         *uint64
	ServerErr         *uint64
	ServerTimedout    *uint64
	ServerConnections *uint64
	OutQueueBytes     *uint64
	InQueueBytes      *uint64
	OutQueue          *uint64
	InQueue           *uint64
	RequestBytes      *uint64
	ResponseBytes     *uint64
	Requests          *uint64
	Responses         *uint64
}

ServerStats represents a server stats

type TwemproxyPlugin

type TwemproxyPlugin struct {
	Address           string
	Prefix            string
	Timeout           uint
	EachServerMetrics bool
}

TwemproxyPlugin mackerel plugin

func (TwemproxyPlugin) FetchMetrics

func (p TwemproxyPlugin) FetchMetrics() (map[string]interface{}, error)

FetchMetrics interface for mackerelplugin

func (TwemproxyPlugin) GraphDefinition

func (p TwemproxyPlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerelplugin

func (TwemproxyPlugin) MetricKeyPrefix

func (p TwemproxyPlugin) MetricKeyPrefix() string

MetricKeyPrefix interface for PluginWithPrefix

type TwemproxyStats

type TwemproxyStats struct {
	TotalConnections *uint64
	CurrConnections  *uint64
	Pools            map[string]*PoolStats
}

TwemproxyStats represents a twemproxy stats

func (*TwemproxyStats) UnmarshalJSON

func (t *TwemproxyStats) UnmarshalJSON(data []byte) error

UnmarshalJSON interface for json.Unmarshaler

Jump to

Keyboard shortcuts

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