exporter

package
v0.0.1-releasedebug Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL