haproxy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GAUGES XXX
	GAUGES = map[string]string{
		"qcur":     "queue.current",
		"scur":     "session.current",
		"slim":     "session.limit",
		"spct":     "session.pct",
		"req_rate": "requests.rate",
		"qtime":    "queue.time",
		"ctime":    "connect.time",
		"rtime":    "response.time",
		"ttime":    "session.time",
	}

	// RATES XXX
	RATES = map[string]string{
		"stot":       "session.rate",
		"bin":        "bytes.in_rate",
		"bout":       "bytes.out_rate",
		"dreq":       "denied.req_rate",
		"dresp":      "denied.resp_rate",
		"ereq":       "errors.req_rate",
		"econ":       "errors.con_rate",
		"eresp":      "errors.resp_rate",
		"wretr":      "warnings.retr_rate",
		"wredis":     "warnings.redis_rate",
		"hrsp_1xx":   "response.1xx",
		"hrsp_2xx":   "response.2xx",
		"hrsp_3xx":   "response.3xx",
		"hrsp_4xx":   "response.4xx",
		"hrsp_5xx":   "response.5xx",
		"hrsp_other": "response.other",
	}
)

Functions

func NewHAProxy

func NewHAProxy(conf plugin.InitConfig) plugin.Plugin

NewHAProxy XXX

Types

type HAProxy

type HAProxy struct {
	URL      string
	Username string
	Password string
}

HAProxy XXX

func (*HAProxy) Check

func (h *HAProxy) Check(agg metric.Aggregator) error

Check XXX

Jump to

Keyboard shortcuts

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