metrics

package
v0.0.0-...-89b6d9c Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatBaseDB is the base state name for database metrics
	StatBaseDB = "db"
	// StatDBQuery is the timing for a db query
	StatDBQuery = StatBaseDB + ".query"

	// StatBaseHTTP is the base state name for http metrics
	StatBaseHTTP = "http"
	// StatHTTPRequest is the timing for a http request
	StatHTTPRequest = StatBaseHTTP + ".request"

	// StatBaseSys is the base state name for system metrics
	StatBaseSys = "sys"
	// StatSysMem is the base state name for system memory metrics
	StatSysMem = StatBaseSys + ".mem"
	// StatSysMemAlloc is the gauge for memory allocation
	StatSysMemAlloc = StatSysMem + ".alloc"
	// StatSysMemAllocTotal is the gauge for memory total allocation
	StatSysMemAllocTotal = StatSysMem + ".alloc-total"
	// StatSysMemSys is the gauge for system memory usage
	StatSysMemSys = StatSysMem + ".sys"
	// StatSysMemNumGC is the counter for
	StatSysMemNumGC = StatSysMem + ".num-gc"
	// StatSysRoutines is the gauge for the number of active go routines
	StatSysRoutines = StatBaseSys + ".goroutines"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	Close() error

	HTTPRequestTiming(t time.Duration, status int, method, path string)
}

Collector collects metrics from the feditools

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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