# Functions

Create a new collector.
Pass a collector configuration (Defaults for metrics).
Pass a counter metrics about query stats.
Pass a logger to the collector.

# Constants

Pull mode (with interval).
Push mode (Uses changestream which is only supported with MongoDB >= 3.6).
Metric value could not been determined.
Metric generated successfully.
Gauge metric type (Can increase and decrease).

# Variables

Only Gauge is a supported metric types.
No cached metric available.
The value was not found in the aggregation result set.

# Structs

Aggregation defines what aggregation pipeline is executed on what servers.
MongoDB event stream.
MongoDB event stream.
A collector is a metric collector group for one single MongoDB server.
Collector configuration with default metric configurations.
A metric defines how a certain value is exported from a MongoDB aggregation.
MongoDB driver.

# Interfaces

Represents a cursor to fetch records from.
MongoDB driver abstraction.
Logger interface which is used in the collector You may use a custom loggger implementing this interface and pass to the collector with Collector.WithLogger(logger).

# Type aliases

MongoDB aggregation result.