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 Metrics []string Username string Password string // Path to CA file SSLCA string `toml:"ssl_ca"` // Path to host cert file SSLCert string `toml:"ssl_cert"` // Path to cert key file SSLKey string `toml:"ssl_key"` // Use SSL but skip chain & host verification InsecureSkipVerify bool // contains filtered or unexported fields }
func (*GrayLog) Description ¶
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 respons 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"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.