我在我的 Ubuntu 14.04 系统上使用collectd 5.4
withlogstash
和用于监控目的。我的配置文件如下所示:elasticsearch
kibana
collectd
Hostname "my-host-name"
Interval 1
LoadPlugin cpu
LoadPlugin load
LoadPlugin df
LoadPlugin memory
LoadPlugin swap
LoadPlugin interface
<Plugin interface>
Interface "eth0"
IgnoreSelected false
</Plugin>
LoadPlugin network
<Plugin network>
Server "127.0.0.1" "25826"
</Plugin>
df
问题是在我启用插件之前一切都很好。启用插件后,插件输出中df
缺少type_instance
字段memory
。这是前面提到的输出:
{"@version":"1","@timestamp":"2014-09-04T07:20:42.143Z","host":"my-host","plugin":"memory","collectd_type":"memory","value":6250332160.0}
{"@version":"1","@timestamp":"2014-09-04T07:20:42.143Z","host":"my-host","plugin":"memory","collectd_type":"memory","type_instance":"buffered","value":55103488.0}
{"@version":"1","@timestamp":"2014-09-04T07:20:42.143Z","host":"my-host","plugin":"memory","collectd_type":"memory","type_instance":"cached","value":1283186688.0}
{"@version":"1","@timestamp":"2014-09-04T07:20:42.143Z","host":"my-host","plugin":"memory","collectd_type":"memory","type_instance":"free","value":665567232.0}
查看给定输出的第一行。没有type_instance
领域。预期的行为是有"type_instance":"used"
. 它只发生在used
场上,而且是随机发生的。在我启用df
插件之前一切正常。