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 }
type Messagebody ¶
type Messagebody struct {
Metrics []string `json:"metrics"`
}
type RealHTTPClient ¶
type RealHTTPClient struct {
// contains filtered or unexported fields
}
func (*RealHTTPClient) HTTPClient ¶
func (c *RealHTTPClient) HTTPClient() *http.Client
func (*RealHTTPClient) MakeRequest ¶
func (*RealHTTPClient) SetHTTPClient ¶
func (c *RealHTTPClient) SetHTTPClient(client *http.Client)
type ResponseMetrics ¶
type ResponseMetrics struct {
Metrics []Metric `json:"metrics"`
}
Click to show internal directories.
Click to hide internal directories.