这解决了有关 Ops Manager 的常见问题,以及它如何监控 MongoDB 实例并就这些部署的问题向您发出警报。
主机配置
如何添加新的主机或服务器?
请参阅将现有 MongoDB 进程添加到 Ops Manager。
Ops Manager 可以监控自身吗?
是的。 您可以使用 Ops Manager 监控为 Ops Manager 和备份守护程序保存数据的后端 MongoDB 实例。 为支持实例创建单独的项目。
但是,您不能使用 Ops Manager 备份或自动化后端实例。
Ops Manager 还通过系统警报提供对所有后端数据库的内置基本监控。
我可以监控启用 Kerberos 的实例吗?
是的。 Ops Manager 支持监控启用了 Kerberos 的 MongoDB 实例。 要了解其工作原理,请参阅为 Kerberos 配置 MongoDB Agent。
监控
我是否需要为每个 MongoDB 实例设置一个代理?
不会。在 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.
我可以在 Amazon Web Services 微型服务器上运行代理吗?
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 地址首选 IP 地址,而不是相应的主机名。 首选主机名还允许您指定用于具有多个别名的服务器的主机名。 这可以防止服务器在 Ops Manager 界面中以不同名称多次出现。
要创建首选主机名,请Go到项目 Settings并添加Preferred Hostnames条目。 有关详细信息,请参阅编辑项目设置
如何设置和配置代理?
请参阅代理下载中包含的README文件。
如何在 Ops Manager 中禁用监控?
请参阅停用监控。
数据呈现
Atlas Charts中的所有这些垂直条是什么?
红色条表示服务器重新启动。
橙色条表示该服务器现在是主节点。
棕色条表示该服务器现在是从节点。
数据保留
Ops Manager 的数据保留策略是什么?
Ops Manager 保留两种不同类型的数据: 指标,描述使用情况;和快照,用于备份数据。
Ops Manager 保留:
Ops Manager 根据 Ops Manager 的Monitoring Data Retention设置保留指标数据。 Ops Manager 管理员可以修改设置,方法是依次选择Admin 、 General 、 Ops Manager Config 、 Miscellaneous标签页,然后滚动到Default Monitoring Data Retention 。
根据其保留策略的快照。
警报
警报条件是什么平均值?
有关警报条件的参考信息,请参阅查看警报条件。