Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatisticsQueueKey = "statistics:%d" StateKey = "state:%s:%s" KeyIdSep = ":" IDTag = "id" )
Variables ¶
View Source
var (
Periods = []int64{300, 3600} //5 min, 1 hour
)
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator interface {
Aggregate(operation string, key string, value float64, id string, tags ...pm.Tag)
}
StatsBuffer implements a buffering and flushing mechanism to buffer statsd messages that are collected via the process manager. Flush happens when buffer is full or a certain time passes since last flush.
The StatsBuffer.Handler should be registers as StatsFlushHandler on the process manager object.
func NewLedisStatsAggregator ¶
func NewLedisStatsAggregator(db *ledis.DB) Aggregator
type Sample ¶
type State ¶
Click to show internal directories.
Click to hide internal directories.