Documentation ¶
Index ¶
- type Collector
- func NewCollectors(collectors ...Collector) Collector
- func NewCounterIncCollect(key string) Collector
- func NewCounterObserveMillisCollect(key string) Collector
- func NewHistogramCollect(key string) Collector
- func NewSuccessFailCounterAdd(keySuccess string, keyFail string, count float64) Collector
- func NewSuccessFailCounterInc(keySuccess string, keyFail string) Collector
- type Metrics
- func (m *Metrics) CounterAdd(name string, v float64) error
- func (m *Metrics) CounterInc(name string) error
- func (m *Metrics) CounterInit(name string, help string)
- func (m *Metrics) HistogramInit(name string, help string, buckets []float64)
- func (m *Metrics) HistogramObserve(name string, v float64) error
- func (m *Metrics) Init()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Error() Collect() error }
func NewCollectors ¶
func NewCounterIncCollect ¶
func NewHistogramCollect ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
var (
Prometheus Metrics
)
func (*Metrics) CounterInc ¶
func (*Metrics) CounterInit ¶
func (*Metrics) HistogramInit ¶
Click to show internal directories.
Click to hide internal directories.