Documentation ¶
Overview ¶
Package signalfxexporter implements an exporter that sends data to SignalFx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶ added in v0.9.0
func NewFactory() component.ExporterFactory
NewFactory creates a factory for SignalFx exporter.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. exporterhelper.TimeoutSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` // 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. 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 act as a prefix. 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"` // 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"` // SendCompatibleMetrics specifies if metrics must be sent in a format backward-compatible with // SignalFx naming conventions, "false" by default. SendCompatibleMetrics bool `mapstructure:"send_compatible_metrics"` // TranslationRules defines a set of rules how to translate metrics to a SignalFx compatible format // Rules defined in translation/constants.go are used by default. TranslationRules []translation.Rule `mapstructure:"translation_rules"` // DeltaTranslationTTL specifies in seconds the max duration to keep the most recent datapoint for any // `delta_metric` specified in TranslationRules. Default is 3600s. DeltaTranslationTTL int64 `mapstructure:"delta_translation_ttl"` // SyncHostMetadata defines if the exporter should scrape host metadata and // sends it as property updates to SignalFx backend. // IMPORTANT: Host metadata synchronization relies on `resourcedetection` processor. // If this option is enabled make sure that `resourcedetection` processor // is enabled in the pipeline with one of the cloud provider detectors // or environment variable detector setting a unique value to // `host.name` attribute within your k8s cluster. Also keep override // And keep `override=true` in resourcedetection config. SyncHostMetadata bool `mapstructure:"sync_host_metadata"` // ExcludeMetrics defines metrics that will be excluded from sending to Signalfx // backend. If translations enabled with SendCompatibleMetrics or TranslationRules // options, the exclusion will be applied on translated metrics. ExcludeMetrics []string `mapstructure:"exclude_metrics"` }
Config defines configuration for SignalFx exporter.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.