Documentation ¶
Index ¶
- Constants
- Variables
- func NewAggregator(in chan *pb.Metric, out chan *pb.Metric, submissionCadence time.Duration) *aggregator
- func NewHistAggregator(name string, indexedLabels, unindexedLabels map[string]string) aggregatorUnit
- func NewSumAggregator(name string, indexedLabels, unindexedLabels map[string]string) aggregatorUnit
- func RunEndpoint(port int, ch chan *pb.Metric) error
- type Mux
- type Plugin
Constants ¶
View Source
const DIGITS_OF_PRECISION = 2
HdrHistogram doesn't store the values precisely, instead it maintains counts with a number of digits of precision requested.
View Source
const HIGHEST_VALUE = 1e7
View Source
const LOWEST_VALUE = 0
View Source
const MAIN_CHANNEL_BUFFER_SIZE = int(10e5)
Variables ¶
View Source
var MUX_CHANNEL_BUFFER_SIZE = MAIN_CHANNEL_BUFFER_SIZE
Functions ¶
func NewAggregator ¶
func NewAggregator( in chan *pb.Metric, out chan *pb.Metric, submissionCadence time.Duration, ) *aggregator
Creates an instance of the aggregator, with in and out channels.
func NewHistAggregator ¶
func NewSumAggregator ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.