Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingURL = errors.New("missing URL")
)
Functions ¶
func NewHTTPClient ¶
func NewHTTPClient(cfg *HTTPConfig) (*httpClient, error)
Types ¶
type HTTPConfig ¶
type HTTPConfig struct { URL *url.URL Token config.Secret Organization string Bucket string BucketTag string ExcludeBucketTag bool Timeout time.Duration Headers map[string]string Proxy *url.URL UserAgent string ContentEncoding string PingTimeout config.Duration ReadIdleTimeout config.Duration TLSConfig *tls.Config Serializer *influx.Serializer Log telegraf.Logger }
type InfluxDB ¶
type InfluxDB struct { URLs []string `toml:"urls"` Token config.Secret `toml:"token"` Organization string `toml:"organization"` Bucket string `toml:"bucket"` BucketTag string `toml:"bucket_tag"` ExcludeBucketTag bool `toml:"exclude_bucket_tag"` Timeout config.Duration `toml:"timeout"` HTTPHeaders map[string]string `toml:"http_headers"` HTTPProxy string `toml:"http_proxy"` UserAgent string `toml:"user_agent"` ContentEncoding string `toml:"content_encoding"` UintSupport bool `toml:"influx_uint_support"` PingTimeout config.Duration `toml:"ping_timeout"` ReadIdleTimeout config.Duration `toml:"read_idle_timeout"` tls.ClientConfig Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func (*InfluxDB) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.