对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

常见问题解答:监控和警报

这解决了有关 Ops Manager 的常见问题,以及它如何监控 MongoDB 实例并就这些部署的问题向您发出警报。

请参阅将现有 MongoDB 进程添加到 Ops Manager。

是的。 您可以使用 Ops Manager 监控为 Ops Manager 和备份守护程序保存数据的后端 MongoDB 实例。 为支持实例创建单独的项目

但是,您不能使用 Ops Manager 备份或自动化后端实例。

Ops Manager 还通过系统警报提供对所有后端数据库的内置基本监控。

是的。 Ops Manager 支持监控启用了 Kerberos 的 MongoDB 实例。 要了解其工作原理,请参阅为 Kerberos 配置 MongoDB Agent。

不会。在 Ops Manager 项目中,有一个代理会连接到所有 MongoDB 数据库。 配置防火墙以允许代理跨数据中心和服务器连接。

从代理版本 5.0.0 开始,您可以激活具有多个代理的监控,以分发监控任务并提供故障转移。 Ops Manager 可在最多 100 个正在运行的代理之间分配监控任务。如果运行的代理超过 100 个,则附加代理将充当“备用”代理。 有关详细信息,请参阅托管监控功能。

The amount of resources the agent requires varies depending on infrastructure size, the number of servers and the databases it is monitoring. Run the agent on an existing machine with additional capacity that does not run a mongod instance. You may also run the agent on a smaller dedicated instance.

The agent load scales with the number of monitored mongod plus mongos processes and the number of databases in your MongoDB environment.

For production environments, it is recommended to install the agent on a dedicated server, and not on the the same host as a data bearing mongod instance. This allows you to perform maintenance on the mongod and its host without affecting the monitoring for your deployment. Additionally, an agent may contend for resources with the mongod.

You can install the agent on the same system as an arbiter, a mongos, or an application server depending on the requirements of these services and available resources.

If you monitor five or fewer mongod instances, you can use an AWS micro server.

最常见的问题是代理无法解析主机的主机名。 检查 DNS 和/etc/hosts文件。

第二个最常见的问题是防火墙规则禁止从代理访问主机。

To test the connection, login to the host running the agent and try to connect using mongosh:

mongosh <hostname>:<port>/test

注意

Ops Manager 不支持端口转发。

默认情况下,代理会解析要连接的主机名。 如果代理无法通过解析主机名进行连接,您可以强制代理为特定 IP 地址首选 IP 地址,而不是相应的主机名。 首选主机名还允许您指定用于具有多个别名的服务器的主机名。 这可以防止服务器在 Ops Manager 界面中以不同名称多次出现。

要创建首选主机名,请Go到项目 Settings并添加Preferred Hostnames条目。 有关详细信息,请参阅编辑项目设置

请参阅代理下载中包含的README文件。

请参阅停用监控。

红色条表示服务器重新启动。

橙色条表示该服务器现在是主节点。

棕色条表示该服务器现在是从节点。

Ops Manager 保留两种不同类型的数据: 指标,描述使用情况;和快照,用于备份数据。

Ops Manager 保留:

  • Ops Manager 根据 Ops Manager 的Monitoring Data Retention设置保留指标数据。 Ops Manager 管理员可以修改设置,方法是依次选择AdminGeneralOps Manager ConfigMiscellaneous标签页,然后滚动到Default Monitoring Data Retention

有关警报条件的参考信息,请参阅查看警报条件。

有关默认警报配置以及添加新警报或修改现有警报(包括修改警报频率)的步骤,请参阅在Ops Manager中配置警报设置。