Munin 聚合图

Munin 聚合图

我正在尝试聚合 munin 图表(http://munin-monitoring.org/wiki/aggregate_examples)我的 nginx_request 插件(http://exchange.munin-monitoring.org/plugins/nginx_request/version/2

我的配置是:

[lb1.domain.com]
    address 192.168.170.112
    use_node_name yes

[lb2.domain.com]
    address 192.168.174.9
    use_node_name yes

[TRAFFIC;Aggregated]
  update no
  contacts no
  nginx_requests.graph_title nGinx requests
  nginx_requests.graph_vlabel nGinx requests per second
  nginx_requests.draw LINE2
  nginx_requests.graph_args --base 1000
  nginx_requests.graph_category nginx
  nginx_requests.label req/sec
  nginx_requests.type DERIVE
  nginx_requests.min 0
  nginx_requests.graph_order outputrequest
  nginx_requests.outputrequest.sum \
    lb1.domain.com:nginx_request.request \
    lb2.domain.com:nginx_request.request

我也尝试了几种不同的配置设置,但图表不起作用。有人能帮我找到正确的配置设置吗

答案1

最终对我有用的代码

[lb;lb1]
    address X.X.X.X
    use_node_name yes

[lb;lb2]
    address Y.Y.Y.Y
    use_node_name yes

[lb;lb3]
    address Z.Z.Z.Z
    use_node_name yes

[lb;Aggregated]
  update no
  contacts no
  nginx_requests.graph_title nGinx requests (Total)
  nginx_requests.graph_vlabel nGinx requests (Total) per second
  nginx_requests.total.draw LINE2
  nginx_requests.graph_args --base 1000
  nginx_requests.graph_category nginx
  nginx_requests.total.label req/sec
  nginx_requests.total.type DERIVE
  nginx_requests.total.min 0
  nginx_requests.total.sum \
    lb1:nginx_request.request \
    lb2:nginx_request.request \
    lb3:nginx_request.request

相关内容