Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NOP = nopMetrics{}
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
func New ¶
func New(cfg *config.ConfigMetrics) Metrics
func NopMetrics ¶
func NopMetrics() Metrics
type UdpMetrics ¶
type UdpMetrics struct {
// contains filtered or unexported fields
}
func NewUdpMetrics ¶
func NewUdpMetrics(addr, prefix string) (*UdpMetrics, error)
func (*UdpMetrics) IncCounter ¶
func (s *UdpMetrics) IncCounter(name string)
func (*UdpMetrics) SetGauge ¶
func (s *UdpMetrics) SetGauge(name string, value int)
Click to show internal directories.
Click to hide internal directories.