package
1.0.0
Repository: https://github.com/vkuznet/mongodb_exporter.git
Documentation: pkg.go.dev

# Functions

BsonMongoTimestampToUnix converts a mongo timestamp to UNIX time there's gotta be a better way to do this, but it works for now :/.
GetDatabaseStatus returns stats for a given database.
GetOplogCollectionStats fetches oplog collection stats.
GetOplogStatus fetches oplog collection stats.
GetOplogTimestamp fetches the latest oplog timestamp.
GetReplSetStatus returns the replica status info.
GetServerStatus returns the server status info.
NewMongodbCollector returns a new instance of a MongodbCollector.

# Variables

Namespace is the namespace of the metrics.

# Structs

ApplyStats are the stats associated with the apply operation.
AssertsStats has the assets metrics.
BenchmarkStats is bechmark info about an operation.
BufferStats are the stats associated with the buffer.
ClientStats metrics for client stats.
ConnectionStats are connections metrics.
Cursors are the cursor metrics.
CursorStats are the stats for cursors.
CursorStatsOpen are the stats for open cursors.
DatabaseStatus represents stats about a database.
DocumentStats are the stats associated to a document.
DurStats are the stats related to durability.
DurTiming is the information about durability returned from the server.
ExtraInfo has extra info metrics.
FlushStats is the flush stats metrics.
GetLastErrorStats are the last error stats.
GlobalLockStats global lock stats.
IndexCounterStats index counter stats.
LockStats lock stats.
Member represents an array element of ReplSetStatus.Members.
MemStats tracks the mem stats metrics.
MetricsNetworkStats are the network stats.
MetricsStats are all stats associated with metrics of the system.
MongodbCollector is in charge of collecting mongodb's metrics.
MongodbCollectorOpts is the options of the mongodb collector.
NetworkStats network stats.
OpcountersReplStats opcounters stats.
OpcountersStats opcounters stats.
OperationStats are the stats for some kind of operations.
OplogCollectionStats represents metrics about an oplog collection.
OplogStatus represents oplog metrics.
PreloadStats are the stats associated with preload operation.
QueryExecutorStats are the stats associated with a query execution.
QueueStats queue stats.
RawStatus represents stats about a database.
ReadWriteLockTimes information about the lock.
RecordStats are stats associated with a record.
ReplSetStatus keeps the data returned by the GetReplSetStatus method.
ReplStats are the stats associated with the replication process.
ServerStatus keeps the data returned by the serverStatus() method.
StorageStats are the stats associated with the storage.

# Type aliases

LockStatsMap is a map of lock stats.