Skip to content
On this page

Micrometer Connection Binder

Binder for Micrometer to monitor all connection to your MongoDB, not only the connections from your Scala / Java App.

Metrics

MetricTypeDescriptionUnit
mongodb.server.status.connections.currentGaugeThe number of incoming connections from clients to the database server.Connections
mongodb.server.status.connections.availableGaugeThe number of unused incoming connections available.Connections
mongodb.server.status.connections.totalCreatedGaugeCount of all incoming connections created to the server. This number includes connections that have since closed.Connections
mongodb.server.status.connections.activeGaugeThe number of active client connections to the server.Connections
mongodb.server.status.connections.threadedGaugeThe number of incoming connections from clients that are assigned to threads.Connections

Usage

scala
ConnectionsMetrics(MongoTestServer.provider.database()).bindTo(registry)

Released under the Apache License 2.0.