IntegraçõesBancos de dados e mensageria
Monitorar MongoDB com o DumbMonit
The document database itself: replica set members and lag, a missing primary, connections against the limit, WiredTiger cache and assertions.
DocumentaçãoSite oficial: MongoDB
As descrições estão em inglês, como no produto. Os rótulos da página seguem o seu idioma.
O que o DumbMonit vigia
The document database itself: the replica set (members, their state, a missing primary, how far each secondary is behind), connections against the limit, the WiredTiger cache, operations and assertions.
Uso típico. Document database: replica set, lag, connections, WiredTiger cache
Exemplos
- MongoDB replica set
- Standalone mongod
- The database behind UniFi or Rocket.Chat
Como se conecta
O que você precisa
- Username / passwordAn account with the clusterMonitor role only, logged in with SCRAM-SHA-256.
Não é preciso nenhuma conta.
Portas de rede a abrir
27017/TCPMongoDB protocol (default port, plain or TLS)
Etapas de configuração: Create a read-only MongoDB account
In mongosh, create the account with the clusterMonitor role.
use admin db.createUser({user: "dumbmonit", pwd: passwordPrompt(), roles: [{role: "clusterMonitor", db: "admin"}]})In DumbMonit, enter the address of one mongod, for example db1.lan:27018, then the user and its password.
In a replica set, add every member as its own monitor.
Tick TLS if the server requires it.
Atenção. A mongodb+srv:// address is not resolved (enter each member's host), and MongoDB older than 3.6 and mongos routers are not supported.