我在 EC2 中运行神经节并且报告运行良好。我正在运行 gmetad 来监控来自管理报告实例的数据库集群,该实例是我们所有系统的集中仪表板。我不希望此实例包含在监控中。在管理员 gmond.conf 中,我设置了:
mute = yes
但这只会使 Web 前端显示主机已死。在管理员 gmetad.conf 中,我将 data_source 设置为:
data_source "cluster" ec2-X-X-X-X.compute-1.amazonaws.com
(ec2-X-X-X-X.compute-1.amazonaws.com 是管理实例的 ec2 主机名)
我想设置
mute=yes
会将其从报告和 gstat 中删除,但两者仍将管理主机 (localhost) 显示为已死。有没有办法做到这一点?
最佳答案
您需要设置 host_dmax
属性为 gmond.conf 文件中 0 以外的值。
对我来说,静音 Ganglia 主机最初出现(重新启动后),但在我为 host_dmax
设置的时间后消失。 .尽管 mute
仍不清楚为什么主机在重启后首先出现设置为是。cleanup_threshold
属性也可能影响宿主消失的时间。
这在 Ganglia wiki 中有介绍:
The
host_dmax
value is an integer with units in seconds. When set to zero (0), gmond will never delete a host from its list even when a remote host has stopped reporting. Ifhost_dmax
is set to a positive number then gmond will flush a host after it has not heard from it forhost_dmax
seconds. By the way, dmax means "delete max".The
cleanup_threshold
is the minimum amount of time before gmond will cleanup any hosts or metrics where tn > dmax a.k.a. expired data.
关于cluster-computing - 如何从神经节报告中排除监控服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14284822/