signalfx

package
v0.0.0-...-2d2a115 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package signalfx contains a SignalFx exporter that supports exporting OpenCensus views as SignalFx data points.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter exports stats to SignalFx. In this exporter the view name is mapped to the metric name and the tags are mapped to dimensions.

func NewExporter

func NewExporter(o Options) (*Exporter, error)

NewExporter returns an exporter that exports stats to SignalFx.

func (*Exporter) ExportView

func (e *Exporter) ExportView(vd *view.Data)

ExportView exports to the SignalFx if view data has one or more rows. Each OpenCensus stats records will be converted to corresponding SignalFx Metric.

func (*Exporter) Flush

func (e *Exporter) Flush()

type Options

type Options struct {
	// Token contains the required token to send datapoints
	// to SignalFx. It cannot be empty.
	Token string

	// DatapointEndpoint contains the endpoint to send the datapoints
	// to SignalFx. The default value can be found as sfxclient.IngestEndpointV2.
	DatapointEndpoint string

	// ReportingDelay contains the reporting interval.
	// The default value is 20s.
	ReportingDelay time.Duration

	// OnError is the hook to be called when there is
	// an error uploading the stats or tracing data.
	// If no custom hook is set, errors are logged.
	OnError func(err error)
}

Options contains options for configuring the exporter.

Jump to

Keyboard shortcuts

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