elasticsearch

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupMatchTemplate

func SetupMatchTemplate(base string) error

SetupMatchTemplate sets up elastic search templates for the type of text query we need to run

Types

type SampleIndexer

type SampleIndexer struct {
	prometheus.Collector
	Client *elastic.Client
	Index  string
	// contains filtered or unexported fields
}

SampleIndexer represents an object that takes bus messages and makes indexing decisions on the target ElasticSearch cluster.

func NewSampleIndexer

func NewSampleIndexer(config *SampleIndexerConfig) *SampleIndexer

NewSampleIndexer creates a new instance of SampleIndexer.

func (*SampleIndexer) Collect

func (si *SampleIndexer) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector. Sends metrics collected bu the instance's indexDurations to the parameter ch.

func (*SampleIndexer) Describe

func (si *SampleIndexer) Describe(ch chan<- *prometheus.Desc)

Describe implements prometheus.Collector. Sends decriptors of the instance's indexDurations to the parameter ch.

func (*SampleIndexer) IndexSample

func (si *SampleIndexer) IndexSample(s *bus.Sample) error

IndexSample implements the SampleIndexer interface.

type SampleIndexerConfig

type SampleIndexerConfig struct {
	Client *elastic.Client
	Index  string
}

SampleIndexerConfig represents the configuration of a SampleIndexer.

Jump to

Keyboard shortcuts

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