控更改采集間隔時(shí)間)
collectd默認(rèn)是10秒采集一次數(shù)據(jù)的但次時(shí)間間隔再某些不重要的監(jiān)控指標(biāo)上間隔時(shí)太短了應(yīng)該增長(zhǎng)該類 指標(biāo)的采集的間隔時(shí)間。根據(jù)官方文檔collectd.conf信息顯示Interval SecondsConfigures the interval in which to query the read plugins. Obviously smaller values lead to a higher system load produced by collectd, while higher values lead to more coarse statistics.可通過(guò)在collectd.conf修改配置文件中的Interval 參數(shù)更改采集更改時(shí)間。Interval 10如上修改的是全局的采集間隔時(shí)間設(shè)為10秒采集一次。LoadPlugin cpuInterval 60/LoadPlugin如上修改的是采集df信息的間隔時(shí)間設(shè)為60秒采集一次。修改完成后保存退出并重啟collectd服務(wù)。