collector

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongodbCollector

type MongodbCollector struct {
	Opts MongodbCollectorOpts
	// contains filtered or unexported fields
}

MongodbCollector is in charge of collecting mongodb's metrics.

func NewMongodbCollector

func NewMongodbCollector(opts MongodbCollectorOpts) *MongodbCollector

NewMongodbCollector returns a new instance of a MongodbCollector.

func (*MongodbCollector) Collect

func (exporter *MongodbCollector) Collect(ch chan<- prometheus.Metric)

Collect is called by the Prometheus registry when collecting metrics. Part of prometheus.Collector interface.

func (*MongodbCollector) Describe

func (exporter *MongodbCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends the super-set of all possible descriptors of metrics collected by this Collector to the provided channel and returns once the last descriptor has been sent. Part of prometheus.Collector interface.

type MongodbCollectorOpts

type MongodbCollectorOpts struct {
	URI                   string
	TLSConnection         bool
	TLSCertificateFile    string
	TLSPrivateKeyFile     string
	TLSCaFile             string
	TLSHostnameValidation bool
}

MongodbCollectorOpts is the options of the mongodb collector.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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