DumbMonit

集成数据库和消息队列

用 DumbMonit 监控 MongoDB

The document database itself: replica set members and lag, a missing primary, connections against the limit, WiredTiger cache and assertions.

文档官方网站:MongoDB

产品说明为英文,与产品内一致。页面标签使用您的语言。

DumbMonit 监控的内容

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.

典型用途. Document database: replica set, lag, connections, WiredTiger cache

示例

  • MongoDB replica set
  • Standalone mongod
  • The database behind UniFi or Rocket.Chat

连接方式

您需要准备

  • Username / passwordAn account with the clusterMonitor role only, logged in with SCRAM-SHA-256.

无需账户。

需要开放的网络端口

  • 27017/TCPMongoDB protocol (default port, plain or TLS)
设置步骤: Create a read-only MongoDB account
  1. In mongosh, create the account with the clusterMonitor role.

    use admin
    db.createUser({user: "dumbmonit", pwd: passwordPrompt(), roles: [{role: "clusterMonitor", db: "admin"}]})
  2. In DumbMonit, enter the address of one mongod, for example db1.lan:27018, then the user and its password.

  3. In a replica set, add every member as its own monitor.

  4. Tick TLS if the server requires it.

注意. A mongodb+srv:// address is not resolved (enter each member's host), and MongoDB older than 3.6 and mongos routers are not supported.