prometheus

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBuckets    = []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10}
	DefaultObjectives = map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001, 0.999: 0.0001, 0.9999: 0.00001}
)

Functions

func HTTPClientRequestsDurationHistogram added in v0.2.5

func HTTPClientRequestsDurationHistogram(peer string, code int, method string, path string, duration float64)

HTTPClientRequestsDurationHistogram ...

func HTTPClientRequestsDurationSummary added in v0.2.5

func HTTPClientRequestsDurationSummary(peer string, code int, method string, path string, duration float64)

HTTPClientRequestsDurationSummary ...

func HTTPClientRequestsTotalCounter added in v0.2.5

func HTTPClientRequestsTotalCounter(peer string, code int, method string, path string)

HTTPClientRequestsTotalCounter ...

func HTTPServerRequestsDurationHistogram added in v0.2.5

func HTTPServerRequestsDurationHistogram(code int, method string, path string, duration float64)

HTTPServerRequestsDurationHistogram ...

func HTTPServerRequestsDurationSummary added in v0.2.5

func HTTPServerRequestsDurationSummary(code int, method string, path string, duration float64)

HTTPServerRequestsDurationSummary ...

func HTTPServerRequestsTotalCounter added in v0.2.5

func HTTPServerRequestsTotalCounter(code int, method string, path string)

HTTPServerRequestsTotalCounter ...

func HttpClientInit added in v0.2.5

func HttpClientInit()

func HttpServerInit added in v0.2.5

func HttpServerInit()

func LogCounter added in v0.2.5

func LogCounter(level string)

LogCounter ...

func LogInit added in v0.2.5

func LogInit()

func SetPromeCfg added in v0.2.5

func SetPromeCfg(cfg config.Prometheus)

func SetPromeService added in v0.2.5

func SetPromeService(s string)

func UpInit added in v0.2.6

func UpInit()

Types

This section is empty.

Jump to

Keyboard shortcuts

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