Documentation ¶
Index ¶
- type MetricLine
- type Warp10
- func (w *Warp10) Close() error
- func (w *Warp10) Connect() error
- func (w *Warp10) Description() string
- func (w *Warp10) GenWarp10Payload(metrics []telegraf.Metric) string
- func (w *Warp10) HandleError(body string, maxStringSize int) string
- func (w *Warp10) Init() error
- func (w *Warp10) SampleConfig() string
- func (w *Warp10) Write(metrics []telegraf.Metric) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricLine ¶
MetricLine Warp 10 metrics
type Warp10 ¶
type Warp10 struct { Prefix string `toml:"prefix"` WarpURL string `toml:"warp_url"` Token string `toml:"token"` Timeout config.Duration `toml:"timeout"` PrintErrorBody bool `toml:"print_error_body"` MaxStringErrorSize int `toml:"max_string_error_size"` tls.ClientConfig Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
Warp10 output plugin
func (*Warp10) GenWarp10Payload ¶
GenWarp10Payload compute Warp 10 metrics payload
func (*Warp10) HandleError ¶
HandleError read http error body and return a corresponding error
Click to show internal directories.
Click to hide internal directories.