Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Define a custom registry Registry *prometheus.Registry FullSyncProgressGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "mongo_repl_full_sync_progress", Help: "The progress of the full sync", }, []string{"database", "collection"}) FullSyncReadCounter = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "mongo_repl_full_sync_documents_read_total", Help: "The total number of documents fetched during a full sync", }, []string{"database", "collection"}) FullSyncWriteCounter = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "mongo_repl_full_sync_documents_write_total", Help: "The total number of documents written during a full sync", }, []string{"database", "collection", "operation"}) FullSyncErrorTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "mongo_repl_full_sync_documents_error_total", Help: "The total number of documents written during a full sync", }, []string{"database", "collection", "error"}) IncrSyncOplogReadCounter = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "mongo_repl_incr_sync_oplog_read_total", Help: "The total number of documents fetched during an incremental sync", }, []string{"database", "collection", "operation"}) IncrSyncOplogWriteCounter = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "mongo_repl_incr_sync_oplog_write_total", Help: "The total number of documents written during an incremental sync", }, []string{"database", "collection", "operation"}) CheckpointGauge = prometheus.NewGauge(prometheus.GaugeOpts{ Name: "mongo_repl_incr_sync_checkpoint", Help: "The checkpoint of the incremental sync", }) MongoReplSourceTotalDocumentCount = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "mongo_repl_total_document_count", Help: "The total number of documents in the source database", }, []string{"origin", "database", "collection"}) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.