Versions in this module Expand all Collapse all v0 v0.3.0 Jul 20, 2019 Changes in this version + var BusinessErrCount = New().WithCounter("go_business_err_count", []string{"name"}).WithState("go_business_err_state", []string{ ... }) + var BusinessInfoCount = New().WithCounter("go_business_info_count", []string{"name"}).WithState("go_business_info_state", []string{ ... }) + var CacheHit = New().WithCounter("go_cache_hit", []string{ ... }) + var CacheMiss = New().WithCounter("go_cache_miss", []string{ ... }) + var HTTPClient = New().WithTimer("go_http_client", []string{"method"}).WithCounter("go_http_client_code", []string{ ... }) + var HTTPServer = New().WithTimer("go_http_server", []string{"user", "method"}).WithCounter("go_http_server_code", []string{ ... }) + var LibClient = New().WithTimer("go_lib_client", []string{"method"}).WithCounter("go_lib_client_code", []string{ ... }) + var RPCClient = New().WithTimer("go_rpc_client", []string{"method"}).WithCounter("go_rpc_client_code", []string{ ... }) + var RPCServer = New().WithTimer("go_rpc_server", []string{"user", "method"}).WithCounter("go_rpc_server_code", []string{ ... }) + type Prom struct + func New() *Prom + func (p *Prom) Add(name string, v int64, extra ...string) + func (p *Prom) Decr(name string, extra ...string) + func (p *Prom) Incr(name string, extra ...string) + func (p *Prom) State(name string, v int64, extra ...string) + func (p *Prom) Timing(name string, time int64, extra ...string) + func (p *Prom) WithCounter(name string, labels []string) *Prom + func (p *Prom) WithState(name string, labels []string) *Prom + func (p *Prom) WithTimer(name string, labels []string) *Prom