Documentation ¶
Overview ¶
Package signalfxexporter implements an exporter that sends data to SignalFx.
Index ¶
- func New(config *Config, logger *zap.Logger) (component.MetricsExporterOld, error)
- type Config
- type Factory
- func (f *Factory) CreateDefaultConfig() configmodels.Exporter
- func (f *Factory) CreateMetricsExporter(logger *zap.Logger, config configmodels.Exporter) (component.MetricsExporterOld, error)
- func (f *Factory) CreateTraceExporter(logger *zap.Logger, config configmodels.Exporter) (component.TraceExporterOld, error)
- func (f *Factory) Type() configmodels.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. // AccessToken is the authentication token provided by SignalFx. AccessToken string `mapstructure:"access_token"` // Realm is the SignalFx realm where data is going to be sent to. The // default value is "us0" Realm string `mapstructure:"realm"` // IngestURL is the destination to where SignalFx metrics will be sent to, it is // intended for tests and debugging. The value of Realm is ignored if the // URL is specified. If a path is not included the exporter will // automatically append the appropriate path, eg.: "v2/datapoint". // If a path is specified it will use the one set by the config. IngestURL string `mapstructure:"ingest_url"` // APIURL is the destination to where SignalFx metadata will be sent. This // value takes precedence over the value of Realm APIURL string `mapstructure:"api_url"` // Timeout is the maximum timeout for HTTP request sending trace data. The // default value is 5 seconds. Timeout time.Duration `mapstructure:"timeout"` // Headers are a set of headers to be added to the HTTP request sending // trace data. These can override pre-defined header values used by the // exporter, eg: "User-Agent" can be set to a custom value if specified // here. Headers map[string]string `mapstructure:"headers"` // Whether to log dimension updates being sent to SignalFx. LogDimensionUpdates bool `mapstructure:"log_dimension_updates"` splunk.AccessTokenPassthroughConfig `mapstructure:",squash"` }
Config defines configuration for SignalFx exporter.
type Factory ¶
type Factory struct { }
Factory is the factory for SignalFx exporter.
func (*Factory) CreateDefaultConfig ¶
func (f *Factory) CreateDefaultConfig() configmodels.Exporter
CreateDefaultConfig creates the default configuration for exporter.
func (*Factory) CreateMetricsExporter ¶
func (f *Factory) CreateMetricsExporter( logger *zap.Logger, config configmodels.Exporter, ) (component.MetricsExporterOld, error)
CreateMetricsExporter creates a metrics exporter based on this config.
func (*Factory) CreateTraceExporter ¶
func (f *Factory) CreateTraceExporter( logger *zap.Logger, config configmodels.Exporter, ) (component.TraceExporterOld, error)
CreateTraceExporter creates a trace exporter based on this config.
func (*Factory) Type ¶
func (f *Factory) Type() configmodels.Type
Type gets the type of the Exporter config created by this factory.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.