Documentation
¶
Index ¶
- type Meter
- type Metrics
- func (m *Metrics) AddErrors(value uint64)
- func (m *Metrics) AddHits(value uint64)
- func (m *Metrics) AddMisses(value uint64)
- func (m *Metrics) AddProxiedNum(value uint64)
- func (m *Metrics) AddTotal(value uint64)
- func (m *Metrics) SetAvgResponseTime(avgDuration float64)
- func (m *Metrics) SetCacheLength(count uint64)
- func (m *Metrics) SetCacheMemory(bytes uint64)
- func (m *Metrics) SetPanics(value uint64)
- func (m *Metrics) SetRPS(value float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meter ¶
type Meter interface {
AddHits(value uint64)
AddMisses(value uint64)
AddErrors(value uint64)
AddTotal(value uint64)
SetPanics(value uint64)
AddProxiedNum(value uint64)
SetRPS(value float64)
SetCacheLength(count uint64)
SetCacheMemory(bytes uint64)
SetAvgResponseTime(avg float64)
}
Meter defines methods for recording application metrics.
type Metrics ¶
type Metrics struct{}
Metrics implements Meter using VictoriaMetrics metrics.
func (*Metrics) AddProxiedNum ¶ added in v1.4.1
func (*Metrics) SetAvgResponseTime ¶ added in v0.9.7
func (*Metrics) SetCacheLength ¶
func (*Metrics) SetCacheMemory ¶
Click to show internal directories.
Click to hide internal directories.