Documentation ¶
Index ¶
- type HTTPListenerV2
- func (h *HTTPListenerV2) Description() string
- func (h *HTTPListenerV2) Gather(_ telegraf.Accumulator) error
- func (h *HTTPListenerV2) SampleConfig() string
- func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (h *HTTPListenerV2) SetParser(parser parsers.Parser)
- func (h *HTTPListenerV2) Start(acc telegraf.Accumulator) error
- func (h *HTTPListenerV2) Stop()
- type TimeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPListenerV2 ¶
type HTTPListenerV2 struct { ServiceAddress string `toml:"service_address"` Path string `toml:"path"` Methods []string `toml:"methods"` DataSource string `toml:"data_source"` ReadTimeout config.Duration `toml:"read_timeout"` WriteTimeout config.Duration `toml:"write_timeout"` MaxBodySize config.Size `toml:"max_body_size"` Port int `toml:"port"` BasicUsername string `toml:"basic_username"` BasicPassword string `toml:"basic_password"` HTTPHeaderTags map[string]string `toml:"http_header_tags"` tlsint.ServerConfig TimeFunc Log telegraf.Logger parsers.Parser // contains filtered or unexported fields }
HTTPListenerV2 is an input plugin that collects external metrics sent via HTTP
func (*HTTPListenerV2) Description ¶
func (h *HTTPListenerV2) Description() string
func (*HTTPListenerV2) Gather ¶
func (h *HTTPListenerV2) Gather(_ telegraf.Accumulator) error
func (*HTTPListenerV2) SampleConfig ¶
func (h *HTTPListenerV2) SampleConfig() string
func (*HTTPListenerV2) ServeHTTP ¶
func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*HTTPListenerV2) SetParser ¶
func (h *HTTPListenerV2) SetParser(parser parsers.Parser)
func (*HTTPListenerV2) Start ¶
func (h *HTTPListenerV2) Start(acc telegraf.Accumulator) error
Start starts the http listener service.
Click to show internal directories.
Click to hide internal directories.