Documentation ¶
Overview ¶
Package termstat provides a stats implementation which periodically logs the statistics to the given writer. It is meant to be used for testing and debugging at the terminal in lieu of an actual collector writing to an external tool like graphite or datadog. It provides stub implementations for some functionality.
Index ¶
- type Collector
- func (t *Collector) Count(name string, value int64, rate float64, tags ...string)
- func (t *Collector) Gauge(name string, value float64, rate float64, tags ...string)
- func (t *Collector) Histogram(name string, value float64, rate float64, tags ...string)
- func (t *Collector) Set(name string, value string, rate float64, tags ...string)
- func (t *Collector) Timing(name string, value time.Duration, rate float64, tags ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector collects stats and prints them to the terminal
func NewCollector ¶
NewCollector initializes and returns a new TermStat.
Click to show internal directories.
Click to hide internal directories.