collector

package
v0.0.0-...-f845abb Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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