collector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Namespace is the namespace of the metrics
	Namespace = "mongodb"
)

Functions

This section is empty.

Types

type MongodbCollector

type MongodbCollector struct {
	Opts MongodbCollectorOpts
}

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 collects all mongodb's metrics.

func (*MongodbCollector) Describe

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

Describe describes all mongodb's metrics.

type MongodbCollectorOpts

type MongodbCollectorOpts struct {
	URI string
}

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