aggregator

package
v0.0.0-...-bd03ed3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package aggregator creates data points based on statse messages.

Index

Constants

View Source
const MaxBufferLen = 10000

MaxBufferLen limits the number of floats per buffer.

Variables

View Source
var Debug *log.Logger

Functions

func Init

func Init(tsdbChan_ chan<- *tsdb.Point)

Init initialises the package. Must be run at init time.

func ListenAndServe

func ListenAndServe(config *Config) error

ListenAndServe starts a listener that stores incoming messages in a bounded buffer, and periodically summarises them by creating data points.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a client of the Aggregator service.

func NewClient

func NewClient(host string) *Client

NewClient allocates a new client to the Aggregator service.

func (*Client) Close

func (c *Client) Close()

func (*Client) Send

func (c *Client) Send(event *statse.Event)

Send sends an event to the Aggregator service.

type Config

type Config struct {
	SnapshotInterval string
}

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL