Documentation ¶
Overview ¶
Package metrics will allow us to publish/report metrics to measure and manage netmux operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter interface {
Add(value float64)
}
Observer implements the last mile collector to a metric. Ideally all preparation to report metrics should be chached by this entity.
type Metric ¶
Metric represents one data point to be collected. Since it may have flags/labels, we use it as an intermediary entity. An observer should be created from the metric for further reporting.
type PromCounter ¶
type PromCounter struct {
// contains filtered or unexported fields
}
func (*PromCounter) Add ¶
func (s *PromCounter) Add(value float64)
type PromFactory ¶
type PromFactory struct {
// contains filtered or unexported fields
}
func NewPromFactory ¶
func NewPromFactory() *PromFactory
type PromMetric ¶
type PromMetric struct {
// contains filtered or unexported fields
}
type StdoutCounter ¶
type StdoutCounter struct {
// contains filtered or unexported fields
}
func (*StdoutCounter) Add ¶
func (s *StdoutCounter) Add(value float64)
type StdoutFactory ¶
type StdoutFactory struct{}
func NewStdoutFactory ¶
func NewStdoutFactory() *StdoutFactory
type StdoutMetric ¶
type StdoutMetric struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.