Documentation ¶
Index ¶
- type Config
- type TCPOutput
- func (t *TCPOutput) Close() error
- func (t *TCPOutput) Init(ctx context.Context, name string, cfg map[string]interface{}, ...) error
- func (t *TCPOutput) RegisterMetrics(reg *prometheus.Registry)
- func (t *TCPOutput) SetClusterName(name string)
- func (t *TCPOutput) SetEventProcessors(ps map[string]map[string]interface{}, logger *log.Logger, ...)
- func (t *TCPOutput) SetLogger(logger *log.Logger)
- func (t *TCPOutput) SetName(name string)
- func (s *TCPOutput) SetTargetsConfig(map[string]*types.TargetConfig)
- func (t *TCPOutput) String() string
- func (t *TCPOutput) Write(ctx context.Context, m proto.Message, meta outputs.Meta)
- func (t *TCPOutput) WriteEvent(ctx context.Context, ev *formatters.EventMsg)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `mapstructure:"address,omitempty"` // ip:port Rate time.Duration `mapstructure:"rate,omitempty"` BufferSize uint `mapstructure:"buffer-size,omitempty"` Format string `mapstructure:"format,omitempty"` AddTarget string `mapstructure:"add-target,omitempty"` TargetTemplate string `mapstructure:"target-template,omitempty"` OverrideTimestamps bool `mapstructure:"override-timestamps,omitempty"` KeepAlive time.Duration `mapstructure:"keep-alive,omitempty"` RetryInterval time.Duration `mapstructure:"retry-interval,omitempty"` NumWorkers int `mapstructure:"num-workers,omitempty"` EnableMetrics bool `mapstructure:"enable-metrics,omitempty"` EventProcessors []string `mapstructure:"event-processors,omitempty"` }
type TCPOutput ¶
type TCPOutput struct { Cfg *Config // contains filtered or unexported fields }
func (*TCPOutput) RegisterMetrics ¶ added in v0.7.0
func (t *TCPOutput) RegisterMetrics(reg *prometheus.Registry)
func (*TCPOutput) SetClusterName ¶ added in v0.8.0
func (*TCPOutput) SetEventProcessors ¶ added in v0.6.0
func (*TCPOutput) SetTargetsConfig ¶ added in v0.18.0
func (s *TCPOutput) SetTargetsConfig(map[string]*types.TargetConfig)
func (*TCPOutput) WriteEvent ¶ added in v0.7.0
func (t *TCPOutput) WriteEvent(ctx context.Context, ev *formatters.EventMsg)
Click to show internal directories.
Click to hide internal directories.