我的目标是将 Munin 的接口流量图聚合成一个堆叠图,以便快速概览所有服务器的流量。
这是单个图的示例,我想与其他相同类型的图一起聚合。
除了我自己的实现之外,我还找到了几个解决这个问题的“解决方案”(堆栈和求和),但没有一个能按照我的计划进行。
例如,以下“自制”解决方案将正确聚合/堆叠出站流量,但是,完全省略入站流量。
[exmaple.com;Totals]
outside_traffic.graph_title Outbound traffic
outside_traffic.graph_args --base 1000
outside_traffic.graph_order down up
outside_traffic.graph_category network
outside_traffic.graph_vlabel bits in (-) / out (+) per ${graph_period}
outside_traffic.graph_total Total
outside_traffic.up.label outbound
outside_traffic.up.type DERIVE
outside_traffic.up.draw AREA
outside_traffic.up.min 0
outside_traffic.up.negative down
outside_traffic.up.stack \
kit-deu-01=kit-deu-01.example.com:if_enp0s31f6.up \
pgsql1=pgsql1.example.com:if_eth0.up \
proget1=proget1.example.com:if_eth0.up \
redis1=redis1.example.com:if_eth0.up \
salt=salt.example.com:if_eth0.up \
secc=secc.example.com:if_eth0.up
outside_traffic.down.label inbound
outside_traffic.down.type DERIVE
outside_traffic.down.draw AREA
outside_traffic.down.graph no
outside_traffic.down.min 0
outside_traffic.down.stack \
kit-deu-01=kit-deu-01.example.com:if_enp0s31f6.down \
pgsql1=pgsql1.example.com:if_eth0.down \
proget1=proget1.example.com:if_eth0.down \
redis1=redis1.example.com:if_eth0.down \
salt=salt.example.com:if_eth0.down \
secc=secc.example.com:if_eth0.down
我也尝试省略outside_traffic.down.graph no
,但这也没有效果。
如何正确聚合图表,以便在一个图表中聚合正(出站)和负(入站)流量,就像单个源图一样?