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