Documentation ¶
Index ¶
- func Close(printStats bool)
- func GoRuntimeStats(prefix []string)
- func IncrCounter(key []string, value int64)
- func MeasureRuntime(key []string, start time.Time)
- func Scheduler(interval time.Duration, fn interface{}, args ...interface{})
- func Setup(clientType string, host string, port int, prefix string, ...) (err error)
- func UpdateGauge(key []string, value int64)
- func UpdateHistogram(key []string, value int64)
- func UpdateTimer(key []string, value time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoRuntimeStats ¶
func GoRuntimeStats(prefix []string)
GoRuntimeStats collects go runtime stats. prefix is a slice of metric namespace nodes.
func IncrCounter ¶
IncrCounter sets up metric attributes and passes them to the metricsChan. key = slice of strings that will be joined with "." to be used as the metric namespace val = float64 metric value
func MeasureRuntime ¶
MeasureRuntime measures time elapsed since invocation
func Setup ¶
func Setup(clientType string, host string, port int, prefix string, flushInterval time.Duration) (err error)
Setup sets up external and internal metric sinks.
func UpdateGauge ¶
UpdateGauge sets up the Gauge metric and passes them to the metricsChan. key = slice of strings that will be joined with "." to be used as the metric namespace val = float64 metric value
func UpdateHistogram ¶
UpdateHistogram sets up the Histogram metric and passes them to the metricsChan. key = slice of strings that will be joined with "." to be used as the metric namespace val = int64 metric value
func UpdateTimer ¶
UpdateTimer sets up the Timer metric and passes them to the metricsChan. key = slice of strings that will be joined with "." to be used as the metric namespace val = time.Time metric value
Types ¶
This section is empty.