Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter collects Elasticsearch metrics based on configured queries.
func NewExporter ¶
func NewExporter(client *internal_es.Client, metrics []config.MetricConfig) (*Exporter, error)
NewExporter creates, configures, and returns a new Exporter.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector. It fetches data from Elasticsearch for each configured query and sends the resulting metrics to the channel ch.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector. It sends descriptors of all possible metrics collected by this exporter to the channel ch.
Click to show internal directories.
Click to hide internal directories.