emitter

package
v3.3.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.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 InfluxDBConfig

type InfluxDBConfig struct {
	URL string `long:"influxdb-url" description:"InfluxDB server address to emit points to."`

	Database string `long:"influxdb-database" description:"InfluxDB database to write points to."`

	Username string `long:"influxdb-username" description:"InfluxDB server username."`
	Password string `long:"influxdb-password" description:"InfluxDB server password."`

	InsecureSkipVerify bool `long:"influxdb-insecure-skip-verify" description:"Skip SSL verification when emitting to InfluxDB."`
}

func (*InfluxDBConfig) Description

func (config *InfluxDBConfig) Description() string

func (*InfluxDBConfig) IsConfigured

func (config *InfluxDBConfig) IsConfigured() bool

func (*InfluxDBConfig) NewEmitter

func (config *InfluxDBConfig) NewEmitter() metric.Emitter

type InfluxDBEmitter

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

func (*InfluxDBEmitter) Emit

func (emitter *InfluxDBEmitter) Emit(logger lager.Logger, event metric.Event)

type LagerConfig

type LagerConfig struct {
	Enabled bool `long:"emit-to-logs" description:"Emit metrics to logs."`
}

func (*LagerConfig) Description

func (config *LagerConfig) Description() string

func (*LagerConfig) IsConfigured

func (config *LagerConfig) IsConfigured() bool

func (*LagerConfig) NewEmitter

func (config *LagerConfig) NewEmitter() metric.Emitter

type LagerEmitter

type LagerEmitter struct{}

func (*LagerEmitter) Emit

func (emitter *LagerEmitter) Emit(logger lager.Logger, event metric.Event)

type RiemannConfig

type RiemannConfig struct {
	Host string `long:"riemann-host"                  description:"Riemann server address to emit metrics to."`
	Port uint16 `long:"riemann-port"  default:"5555"  description:"Port of the Riemann server to emit metrics to."`

	ServicePrefix string `long:"riemann-service-prefix" default:"" description:"An optional prefix for emitted Riemann services"`

	Tags []string `long:"riemann-tag" description:"Tag to attach to emitted metrics. Can be specified multiple times." value-name:"TAG"`
}

func (*RiemannConfig) Description

func (config *RiemannConfig) Description() string

func (*RiemannConfig) IsConfigured

func (config *RiemannConfig) IsConfigured() bool

func (*RiemannConfig) NewEmitter

func (config *RiemannConfig) NewEmitter() metric.Emitter

type RiemannEmitter

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

func (*RiemannEmitter) Emit

func (emitter *RiemannEmitter) Emit(logger lager.Logger, event metric.Event)

Jump to

Keyboard shortcuts

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