stats

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatBlock

type StatBlock struct {
	TotalDurationMs    map[string][]float64        `json:"total_duration_ms"`
	RequestDurationMs  map[string][]float64        `json:"request_duration_ms"`
	ResponseDurationMs map[string][]float64        `json:"response_duration_ms"`
	RequestRate        map[string][]float64        `json:"request_rate"`
	TopRequest         map[string]*toplist.Toplist `json:"top_request"`
	Slowlog            map[string][]haproxy.HTTPRequest
	Pct75th            map[string]float64 `json:"75th"`
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*StatBlock) GetSlowlog

func (sb *StatBlock) GetSlowlog(frontend string) []haproxy.HTTPRequest

func (*StatBlock) Update

func (sb *StatBlock) Update(ev haproxy.HTTPRequest, name string)

type Stats

type Stats struct {
	Frontends         *StatBlock
	Backends          *StatBlock
	FrontendToBackend map[string]*StatBlock
}

func New

func New(ch chan haproxy.HTTPRequest) *Stats

Jump to

Keyboard shortcuts

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