【问题标题】:collectd disk aggregation does not work?collectd 磁盘聚合不起作用?
【发布时间】:2014-05-28 16:40:41
【问题描述】:

以下聚合一个特定主机中的所有 CPU,创建 cpu-all-sum/cpu-idlecpu-all-sum/cpu-nice 等。

<Aggregation>
    Plugin "cpu"
    Type "cpu"
    SetPlugin "cpu"
    SetPluginInstance "all-%{aggregation}"
    GroupBy "Host"
    GroupBy "TypeInstance"
    CalculateSum true
</Aggregation>

但是,以下方法不起作用:

<Aggregation>
    Plugin "disk"
    PluginInstance "/xvd./"
    Type "disk"
    SetPlugin "disk"
    SetPluginInstance "all-%{aggregation}"
    GroupBy "Host"
    GroupBy "TypeInstance"
    CalculateSum true
</Aggregation>

... 它应该聚合所有“xvd”磁盘上的 IO 操作。它不创建文件,日志中也没有任何内容。

有什么线索吗?

【问题讨论】:

    标签: collectd


    【解决方案1】:

    以下是在debug 日志级别的类似情况下为我收集的日志:

    aggregation plugin: The "disk_octets" type (data set) has more than one data source. This is currently not supported by this plugin. Sorry.
    

    我不太确定,但聚合插件似乎不支持具有多个值样本的插件 - cpu 只有一个值,disk 有 2 - 读取和写入。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-10
      • 1970-01-01
      • 2013-04-27
      • 2018-02-05
      • 2014-02-13
      • 2014-12-01
      • 1970-01-01
      • 2016-08-24
      相关资源
      最近更新 更多