Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows sending batches of Prometheus samples to ElasticSearch.
func NewClient ¶
func NewClient(url string, maxRetries int, esIndexPerfix, esType string, timeout time.Duration) *Client
NewClient return a Client which contains an elasticsearch client. Now, it generates the real esIndex formatted with `<esIndexPerfix>-YYYY-mm-dd`.
func (*Client) Collect ¶
func (c *Client) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Client) Describe ¶
func (c *Client) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
Click to show internal directories.
Click to hide internal directories.