Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SocketWriter ¶
type SocketWriter struct { ContentEncoding string `toml:"content_encoding"` Address string KeepAlivePeriod *internal.Duration tlsint.ClientConfig serializers.Serializer net.Conn // contains filtered or unexported fields }
func (*SocketWriter) Close ¶
func (sw *SocketWriter) Close() error
Close closes the connection. Noop if already closed.
func (*SocketWriter) Connect ¶
func (sw *SocketWriter) Connect() error
func (*SocketWriter) Description ¶
func (sw *SocketWriter) Description() string
func (*SocketWriter) SampleConfig ¶
func (sw *SocketWriter) SampleConfig() string
func (*SocketWriter) SetSerializer ¶
func (sw *SocketWriter) SetSerializer(s serializers.Serializer)
func (*SocketWriter) Write ¶
func (sw *SocketWriter) Write(metrics []telegraf.Metric) error
Write writes the given metrics to the destination. If an error is encountered, it is up to the caller to retry the same write again later. Not parallel safe.
Click to show internal directories.
Click to hide internal directories.