Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
type Scope interface { NewScope(scopes ...string) Scope Inc(stat string, value int64) Gauge(stat string, value int64) GaugeDelta(stat string, value int64) Timing(stat string, delta int64) TimingDuration(stat string, delta time.Duration) SetInt(stat string, value int64) MustRegister(...prometheus.Collector) }
Scope is a stats collector that will prefix the name the stats it collects.
func NewNoopScope ¶
func NewNoopScope() Scope
NewNoopScope returns a Scope that won't collect anything
func NewPromScope ¶
func NewPromScope(registerer prometheus.Registerer, scopes ...string) Scope
NewPromScope returns a Scope that sends data to Prometheus
Directories ¶
Path | Synopsis |
---|---|
Package mock_metrics is a generated GoMock package.
|
Package mock_metrics is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.