簡體   English   中英

我如何配置Munin以將我的所有雲服務器總數提供給我?

[英]How can I configure Munin to give me a total of all my cloud servers?

我有一打負載均衡的雲服務器,全部由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

非常感謝您的幫助。

您可以使用sumstack來實現。

我只需要做同樣的事情,我發現這篇文章很有幫助。

本質上,您想執行以下操作:

[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”插件文件中復制。 這里的關鍵是最后四行-這是其他圖形的值求和的地方。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM