signalfx

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: MIT Imports: 13 Imported by: 0

README

SignalFx Sink

This sink sends Veneur metrics to SignalFx.

Status

This sink is experimental. This sink does not yet provide all of the functionality that SignalFx allows. Some of Veneur's primitives still need to be mapped to those of SignalFx.

Configuration

  • signalfx_api_key to set the API key.
  • signalfx_endpoint_base to adjust where metrics are sent. If you use a proxy or something in front of SignalFx's API this is the place! Do not add a path (i.e. https://ingest.signalfx.com is right!)
  • signalfx_hostname_tag to adjust the tag in which the hostname of this instance will be added. SignalFx doesn't have a first-class hostname field, so this tag handles that.

TODO

  • Does not handle events correctly yet, only copies timestamp, title and tags

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignalFxSink

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

func NewSignalFxSink

func NewSignalFxSink(apiKey string, endpoint string, hostnameTag string, hostname string, commonDimensions map[string]string, stats *statsd.Client, log *logrus.Logger, client dpsink.Sink) (*SignalFxSink, error)

NewSignalFxSink creates a new SignalFx sink for metrics.

func (*SignalFxSink) Flush

func (sfx *SignalFxSink) Flush(ctx context.Context, interMetrics []samplers.InterMetric) error

Flush sends metrics to SignalFx

func (*SignalFxSink) FlushEventsChecks

func (sfx *SignalFxSink) FlushEventsChecks(ctx context.Context, events []samplers.UDPEvent, checks []samplers.UDPServiceCheck)

FlushEventsChecks sends events to SignalFx. It does not support checks. It is also currently disabled.

func (*SignalFxSink) Name

func (sfx *SignalFxSink) Name() string

Name returns the name of this sink.

func (*SignalFxSink) Start

func (sfx *SignalFxSink) Start(traceClient *trace.Client) error

Start begins the sink. For SignalFx this is a noop.

Jump to

Keyboard shortcuts

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