stats

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalConnections  *expvar.Int
	ActiveConnections *expvar.Int
	BytesIn           *expvar.Int
	BytesOut          *expvar.Int
	TotalRequests     *expvar.Int
	BatchRequests     *expvar.Int
	ReadRequests      *expvar.Int
	TailRequests      *expvar.Int
	StatsRequests     *expvar.Int
	CloseRequests     *expvar.Int
	ConfigRequests    *expvar.Int
	TotalErrors       *expvar.Int
	BatchErrors       *expvar.Int
	ReadErrors        *expvar.Int
	TailErrors        *expvar.Int
	StatsErrors       *expvar.Int
	CloseErrors       *expvar.Int
	ConfigErrors      *expvar.Int
	TotalTopics       *expvar.Int
	DisallowedTopics  *expvar.Int
)

Functions

func MultiOK

func MultiOK() []byte

MultiOK returns an MOK response body

func PrettyTime

func PrettyTime(ns float64) string

Types

type Histogram

type Histogram struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewHistogram

func NewHistogram() *Histogram

func (*Histogram) Add

func (h *Histogram) Add(n float64)

func (*Histogram) Quantile

func (h *Histogram) Quantile(q float64) float64

func (*Histogram) Reset

func (h *Histogram) Reset()

func (*Histogram) String

func (h *Histogram) String() string

Jump to

Keyboard shortcuts

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