Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositeCollector ¶
type CompositeCollector struct {
// contains filtered or unexported fields
}
CompositeCollector collects all ES metrics: cluster, nodes, indices. Implements prometheus.Collector
func NewCompositeCollector ¶
func NewCompositeCollector(esClient elasticsearch.Client, exportMetricsForAllNodes bool, appVersion, goVersion, gitBranch string) *CompositeCollector
NewCompositeCollector creates new composite collector
func (*CompositeCollector) Collect ¶
func (c *CompositeCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics
func (*CompositeCollector) Describe ¶
func (c *CompositeCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics
type ICollector ¶
type ICollector interface { Describe(ch chan<- *prometheus.Desc) Collect(clusterName string, ch chan<- prometheus.Metric) }
ICollector is a metrics collector interface
Click to show internal directories.
Click to hide internal directories.