Documentation ¶
Index ¶
- Variables
- func HTTPClientRequestsDurationHistogram(peer string, code int, method string, path string, duration float64)
- func HTTPClientRequestsDurationSummary(peer string, code int, method string, path string, duration float64)
- func HTTPClientRequestsTotalCounter(peer string, code int, method string, path string)
- func HTTPServerRequestsDurationHistogram(code int, method string, path string, duration float64)
- func HTTPServerRequestsDurationSummary(code int, method string, path string, duration float64)
- func HTTPServerRequestsTotalCounter(code int, method string, path string)
- func HttpClientInit()
- func HttpServerInit()
- func LogCounter(level string)
- func LogInit()
- func SetPromeCfg(cfg config.Prometheus)
- func SetPromeService(s string)
- func UpInit()
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
HTTPClientRequestsTotalCounter ...
func HTTPServerRequestsDurationHistogram ¶ added in v0.2.5
HTTPServerRequestsDurationHistogram ...
func HTTPServerRequestsDurationSummary ¶ added in v0.2.5
HTTPServerRequestsDurationSummary ...
func HTTPServerRequestsTotalCounter ¶ added in v0.2.5
HTTPServerRequestsTotalCounter ...
func HttpClientInit ¶ added in v0.2.5
func HttpClientInit()
func HttpServerInit ¶ added in v0.2.5
func HttpServerInit()
func SetPromeCfg ¶ added in v0.2.5
func SetPromeCfg(cfg config.Prometheus)
func SetPromeService ¶ added in v0.2.5
func SetPromeService(s string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.