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 ¶
NewExporter returns an exporter that exports stats to SignalFx.
func (*Exporter) ExportView ¶
ExportView exports to the SignalFx if view data has one or more rows. Each OpenCensus stats records will be converted to corresponding SignalFx Metric.
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.
Click to show internal directories.
Click to hide internal directories.