Documentation ¶
Index ¶
- Variables
- type BadRequestCode
- type InfluxDBV2Listener
- func (h *InfluxDBV2Listener) Gather(_ telegraf.Accumulator) error
- func (h *InfluxDBV2Listener) Init() error
- func (*InfluxDBV2Listener) SampleConfig() string
- func (h *InfluxDBV2Listener) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (h *InfluxDBV2Listener) Start(acc telegraf.Accumulator) error
- func (h *InfluxDBV2Listener) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEOF = errors.New("EOF")
Functions ¶
This section is empty.
Types ¶
type BadRequestCode ¶
type BadRequestCode string
The BadRequestCode constants keep standard error messages see: https://v2.docs.influxdata.com/v2.0/api/#operation/PostWrite
const ( InternalError BadRequestCode = "internal error" Invalid BadRequestCode = "invalid" )
type InfluxDBV2Listener ¶
type InfluxDBV2Listener struct { ServiceAddress string `toml:"service_address"` tlsint.ServerConfig ReadTimeout config.Duration `toml:"read_timeout"` WriteTimeout config.Duration `toml:"write_timeout"` MaxBodySize config.Size `toml:"max_body_size"` Token string `toml:"token"` BucketTag string `toml:"bucket_tag"` ParserType string `toml:"parser_type"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func (*InfluxDBV2Listener) Gather ¶
func (h *InfluxDBV2Listener) Gather(_ telegraf.Accumulator) error
func (*InfluxDBV2Listener) Init ¶
func (h *InfluxDBV2Listener) Init() error
func (*InfluxDBV2Listener) SampleConfig ¶
func (*InfluxDBV2Listener) SampleConfig() string
func (*InfluxDBV2Listener) ServeHTTP ¶
func (h *InfluxDBV2Listener) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*InfluxDBV2Listener) Start ¶
func (h *InfluxDBV2Listener) Start(acc telegraf.Accumulator) error
Start starts the InfluxDB listener service.
Click to show internal directories.
Click to hide internal directories.