Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.