Documentation ¶
Index ¶
- type HTTPListenerV2
- func (h *HTTPListenerV2) Gather(_ telegraf.Accumulator) error
- func (h *HTTPListenerV2) Init() error
- func (*HTTPListenerV2) SampleConfig() string
- func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (h *HTTPListenerV2) SetParser(parser telegraf.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" deprecated:"1.20.0;1.35.0;use 'paths' instead"` Paths []string `toml:"paths"` PathTag bool `toml:"path_tag"` Methods []string `toml:"methods"` HTTPHeaders map[string]string `toml:"http_headers"` 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"` SuccessCode int `toml:"http_success_code"` BasicUsername string `toml:"basic_username"` BasicPassword string `toml:"basic_password"` HTTPHeaderTags map[string]string `toml:"http_header_tags"` tlsint.ServerConfig TimeFunc Log telegraf.Logger telegraf.Parser // contains filtered or unexported fields }
HTTPListenerV2 is an input plugin that collects external metrics sent via HTTP
func (*HTTPListenerV2) Gather ¶
func (h *HTTPListenerV2) Gather(_ telegraf.Accumulator) error
func (*HTTPListenerV2) Init ¶ added in v1.21.0
func (h *HTTPListenerV2) Init() error
func (*HTTPListenerV2) SampleConfig ¶
func (*HTTPListenerV2) SampleConfig() string
func (*HTTPListenerV2) ServeHTTP ¶
func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*HTTPListenerV2) SetParser ¶
func (h *HTTPListenerV2) SetParser(parser telegraf.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.