【问题标题】:How can I configure Munin to give me a total of all my cloud servers?如何配置 Munin 以提供我所有的云服务器?
【发布时间】:2012-05-31 22:41:33
【问题描述】:

我有十几个负载平衡的云服务器,全部由 Munin 监控。

我可以单独跟踪每个人就好了。但我想知道是否可以以某种方式将它们捆绑在一起,以查看整个云集群中的总 CPU 使用量(例如)。

我该怎么做?

munin.conf 文件可以很容易地为子域处理此问题,但我不确定如何为简单的 Web 节点配置它。假设我的 web 节点被命名为 web_node_1 - web_node_10。

我的 conf 现在看起来像这样:

[web_node_1]
    address 10.1.1.1
    use_node_name yes
...
[web_node_10]
    address 10.1.1.10
    use_node_name yes

非常感谢您的帮助。

【问题讨论】:

  • 我刚投了反对票。这个问题有什么问题?
  • 我很确定配置文件中有一个示例。
  • 不。配置中的示例没有回答我的问题。它执行 sub.foo.com 和 sub2.foo.com 并以这种方式捆绑它们,但不会以任何方式展示总 CPU 或负载(例如)。但我很乐意在这里犯错。

标签: networking cloud monitoring munin server-monitoring


【解决方案1】:

您可以通过sumstack 实现此目的。

我只需要做同样的事情,我发现this article 很有帮助。

基本上你想做如下的事情:

[web_nodes;Aggregated]
   update no

   cpu_aggregate.update no
   cpu_aggregate.graph_args --base 1000 -r --lower-limit 0 --upper-limit 200
   cpu_aggregate.graph_category system
   cpu_aggregate.graph_title Aggregated CPU usage
   cpu_aggregate.graph_vlabel %
   cpu_aggregate.graph_order system user nice idle
   cpu_aggregate.graph_period second
   cpu_aggregate.user.label user
   cpu_aggregate.nice.label nice
   cpu_aggregate.system.label system
   cpu_aggregate.idle.label idle
   cpu_aggregate.user.sum web_node_1:cpu.user web_node_2:cpu.user
   cpu_aggregate.nice.sum web_node_1:cpu.nice web_node_2:cpu.nice
   cpu_aggregate.system.sum web_node_1:cpu.nice web_node_2:cpu.system
   cpu_aggregate.idle.sum web_node_1:cpu.nice web_node_2:cpu.idle

还有一些其他的东西可以调整图表以使其具有与主插件相同的比例、最小/最大值等,这些可以从“cpu”插件文件中复制。这里的关键是最后四行 - 这是来自其他图表的值的总和。

【讨论】:

    猜你喜欢
    • 2022-08-04
    • 1970-01-01
    • 1970-01-01
    • 2012-02-26
    • 2013-10-31
    • 1970-01-01
    • 2018-05-15
    • 1970-01-01
    • 2016-05-06
    相关资源
    最近更新 更多