metrics

package
v0.0.0-...-928a51f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGlobal

func SetGlobal(m *Metrics)

Types

type Counter

type Counter interface {
	Inc()
	Add(float64)
}

func ChainErrors

func ChainErrors(chain string) Counter

func HandlerErrors

func HandlerErrors(service string) Counter

func InputBytes

func InputBytes(service string) Counter

func OutputBytes

func OutputBytes(service string) Counter

func Requests

func Requests(service string) Counter

type Gauge

type Gauge interface {
	Inc()
	Dec()
	Add(float64)
	Set(float64)
}

func RequestsInFlight

func RequestsInFlight(service string) Gauge

func Services

func Services() Gauge

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics() *Metrics

type Observer

type Observer interface {
	Observe(float64)
}

func RequestSeconds

func RequestSeconds(service string) Observer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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