canary: github.com/canaryio/canary/pkg/libratoaggregator Index | Files

package libratoaggregator

import "github.com/canaryio/canary/pkg/libratoaggregator"

Index

Package Files

aggregator.go

type Aggregator Uses

type Aggregator struct {
    User   string
    Token  string
    Source string
    C      chan map[string]float64
    // contains filtered or unexported fields
}

An Aggregator is a continuous client to Librato. It listens for new metric pairs to come in over a channel, aggregates them according to name, and submits those metrics to the Librato API every 5 seconds.

func New Uses

func New(user, token, source string) (a *Aggregator)

New takes a user, token and source and returns a pointer to an Aggregator.

Package libratoaggregator imports 7 packages (graph) and is imported by 1 packages. Updated 2016-08-01. Refresh now. Tools for package owners.