Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyStarted = errors.New("component already started") ErrAlreadyStopped = errors.New("component already stopped") )
Functions ¶
func NewFactory ¶
func NewFactory() component.ReceiverFactory
NewFactory creates a factory for telegraf receiver.
Types ¶
type AttributeMapOpt ¶
type AttributeMapOpt func(attributeMap pdata.AttributeMap)
type Config ¶
type Config struct { *config.ReceiverSettings `mapstructure:"-"` // AgentConfig is the yaml config used as telegraf configuration. // Please note that only inputs should be configured as all metrics gathered // by them will be passed through to otc pipeline for processing and export. AgentConfig string `mapstructure:"agent_config"` // SeparateField controls whether the ingested metrics should have a field // concatenated with metric name like e.g. metric=mem_available or maybe rather // have it as a separate label like e.g. metric=mem field=available SeparateField bool `mapstructure:"separate_field"` }
Config defines configuration for the telegraf receiver.
type MetricConverter ¶
type MetricOpt ¶
MetricOpt is an option func that takes in a pdata.Metric and manipulates it.
func WithField ¶
WithField returns a MetricOpt which will set the returned metric's field tag to the specified one.
func WithTag ¶
WithTag returns a MetricOpt which will insert a specified telegraf tag into all underlying data points' label maps.
Click to show internal directories.
Click to hide internal directories.