metrics

package
v0.0.0-...-e5281c0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2013 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOutput

func AddOutput(outputType string)

func ConsoleOutput

func ConsoleOutput()

Types

type HttpMetrics

type HttpMetrics struct {
	ResponseCodes  map[int]gmetrics.Meter
	ResponseRanges map[string]gmetrics.Meter
	// contains filtered or unexported fields
}

func NewHttpMetrics

func NewHttpMetrics(prefix string) HttpMetrics

func (*HttpMetrics) MarkResponseCode

func (hm *HttpMetrics) MarkResponseCode(statusCode int)

type ProxyMetrics

type ProxyMetrics struct {
	Requests        gmetrics.Meter
	CmdReply        gmetrics.Meter
	CmdForward      gmetrics.Meter
	RequestBodySize gmetrics.Histogram
}

func NewProxyMetrics

func NewProxyMetrics() ProxyMetrics

type UpstreamMetrics

type UpstreamMetrics struct {
	Requests  gmetrics.Meter
	Failovers gmetrics.Meter
	Latency   gmetrics.Timer
	Http      *HttpMetrics
}

func GetUpstreamMetrics

func GetUpstreamMetrics(upstreamId string) *UpstreamMetrics

func NewUpstreamMetrics

func NewUpstreamMetrics(upstreamId string) UpstreamMetrics

Jump to

Keyboard shortcuts

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