riemann

package
v0.0.0-...-51b3ee1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

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

Emitter sends events to Riemann.

func NewEmitter

func NewEmitter(addr string, opts ...Option) *Emitter

NewEmitter returns brand new emitter.

func (*Emitter) Emit

func (e *Emitter) Emit(event metric.Event) error

Emit sends the specified event to riemann.

type Option

type Option func(e *Emitter)

func Attributes

func Attributes(attributes map[string]string) Option

Attributes sets attributes to be added to each emitted event.

func Host

func Host(host string) Option

Host sets the reported host for each event. Defaults to os.Hostname.

func Prefix

func Prefix(prefix string) Option

Prefix sets prefix to be prepended to each event name.

func Tags

func Tags(tags []string) Option

Tags sets tags to be added to each emitted event.

Jump to

Keyboard shortcuts

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