Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrayLog ¶
type GrayLog struct {
Servers []string `toml:"servers"`
Metrics []string `toml:"metrics"`
Username string `toml:"username"`
Password string `toml:"password"`
Timeout config.Duration `toml:"timeout"`
tls.ClientConfig
// contains filtered or unexported fields
}
func (*GrayLog) Gather ¶
func (h *GrayLog) Gather(acc telegraf.Accumulator) error
Gathers data for all servers.
func (*GrayLog) SampleConfig ¶
type HTTPClient ¶
type HTTPClient interface {
// Returns the result of an http request
//
// Parameters:
// req: HTTP request object
//
// Returns:
// http.Response: HTTP response object
// error : Any error that may have occurred
MakeRequest(req *http.Request) (*http.Response, error)
SetHTTPClient(client *http.Client)
HTTPClient() *http.Client
}
Click to show internal directories.
Click to hide internal directories.