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.
Click to show internal directories.
Click to hide internal directories.