Documentation ¶
Overview ¶
Package splunkhecreceiver implements a receiver that can be used by the OpenTelemetry collector to receive data in the Splunk HEC supported formats.
Index ¶
- func NewFactory() component.ReceiverFactory
- func NewLogsReceiver(logger *zap.Logger, config Config, nextConsumer consumer.LogsConsumer) (component.LogsReceiver, error)
- func NewMetricsReceiver(logger *zap.Logger, config Config, nextConsumer consumer.MetricsConsumer) (component.MetricsReceiver, error)
- func SplunkHecToLogData(logger *zap.Logger, events []*splunk.Event, ...) (pdata.Logs, error)
- func SplunkHecToMetricsData(logger *zap.Logger, events []*splunk.Event, ...) (pdata.Metrics, int)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ReceiverFactory
NewFactory creates a factory for SignalFx receiver.
func NewLogsReceiver ¶ added in v0.14.0
func NewLogsReceiver( logger *zap.Logger, config Config, nextConsumer consumer.LogsConsumer, ) (component.LogsReceiver, error)
NewLogsReceiver creates the Splunk HEC receiver with the given configuration.
func NewMetricsReceiver ¶ added in v0.14.0
func NewMetricsReceiver( logger *zap.Logger, config Config, nextConsumer consumer.MetricsConsumer, ) (component.MetricsReceiver, error)
NewMetricsReceiver creates the Splunk HEC receiver with the given configuration.
func SplunkHecToLogData ¶ added in v0.13.0
func SplunkHecToLogData(logger *zap.Logger, events []*splunk.Event, resourceCustomizer func(pdata.Resource)) (pdata.Logs, error)
SplunkHecToLogData transforms splunk events into logs
func SplunkHecToMetricsData ¶ added in v0.14.0
func SplunkHecToMetricsData(logger *zap.Logger, events []*splunk.Event, resourceCustomizer func(pdata.Resource)) (pdata.Metrics, int)
SplunkHecToMetricsData converts Splunk HEC metric points to pdata.Metrics. Returning the converted data and the number of dropped time series.
Types ¶
type Config ¶
type Config struct { configmodels.ReceiverSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct confighttp.HTTPServerSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct splunk.AccessTokenPassthroughConfig `mapstructure:",squash"` // Path we will listen on, defaults to `*` (anything matches) Path string `mapstructure:"path"` // contains filtered or unexported fields }
Config defines configuration for the SignalFx receiver.
Click to show internal directories.
Click to hide internal directories.