librato

package
v1.2.50 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

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

Sender is responsible for collecting gauges and sending them in batches to our librato server

var Default *Sender

Default is our default librato collector

func NewSender

func NewSender(waitGroup *sync.WaitGroup, username string, token string, source string, timeout time.Duration) *Sender

NewSender creates a new librato Sender with the passed in parameters

func (*Sender) AddGauge

func (c *Sender) AddGauge(name string, value float64)

AddGauge can be used to add a new gauge to be sent to librato

func (*Sender) Start

func (c *Sender) Start()

Start starts our librato sender, callers can use Stop to stop it

func (*Sender) Stop

func (c *Sender) Stop()

Stop stops our sender, callers can use the WaitGroup used during initialization to block for stop

Jump to

Keyboard shortcuts

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