Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in plugin [inputs.cgroup]: took longer to collect than collection interval #4601

Closed
zngzlg opened this issue Aug 28, 2018 · 0 comments · Fixed by #4606
Closed

Error in plugin [inputs.cgroup]: took longer to collect than collection interval #4601

zngzlg opened this issue Aug 28, 2018 · 0 comments · Fixed by #4606
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@zngzlg
Copy link

zngzlg commented Aug 28, 2018

Relevant telegraf.conf:

System info:

[Include Telegraf version, operating system name, and other relevant details]

Steps to reproduce:

  1. cgroup file missing duration flush:
    2018-08-28T07:39:00Z E! Error in plugin [inputs.cgroup]: stat /cgroup/memory/hadoop-yarn/container_e25_1534970549996_5341889_01_000411: no such file or directory

  2. May be Os.Stat throw exceptions if cgroup files missing in the interval between flush and collect procedures

image

2018-08-28T07:41:00Z E! Error in plugin [inputs.cgroup]: took longer to collect than collection interval (1m0s)

Expected behavior:

Actual behavior:

2018-08-28T07:39:00Z E! Error in plugin [inputs.cgroup]: stat /cgroup/memory/hadoop-yarn/container_e25_1534970549996_5341889_01_000411: no such file or directory
2018-08-28T07:39:00Z D! Output [influxdb] buffer fullness: 59 / 10000 metrics.
2018-08-28T07:39:00Z D! Output [influxdb] wrote batch of 59 metrics in 87.148532ms
2018-08-28T07:39:11Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:39:20Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:39:30Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:39:40Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:39:50Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:40:00Z E! Error in plugin [inputs.cgroup]: took longer to collect than collection interval (1m0s)
2018-08-28T07:40:00Z D! Output [influxdb] buffer fullness: 47 / 10000 metrics.
2018-08-28T07:40:00Z D! Output [influxdb] wrote batch of 47 metrics in 23.56523ms
2018-08-28T07:40:11Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:40:20Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:40:30Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:40:40Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:40:51Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:41:00Z E! Error in plugin [inputs.cgroup]: took longer to collect than collection interval (1m0s)
2018-08-28T07:41:00Z D! Output [influxdb] buffer fullness: 47 / 10000 metrics.
2018-08-28T07:41:00Z D! Output [influxdb] wrote batch of 47 metrics in 25.903242ms
2018-08-28T07:41:11Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:41:20Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:41:30Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:41:41Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:41:50Z D! Output [influxdb] buffer fullness: 0 / 10000 metrics.
2018-08-28T07:42:00Z E! Error in plugin [inputs.cgroup]: took longer to collect than collection interval (1m0s)

Additional info:

[Include gist of relevant config, logs, etc.]

@danielnelson danielnelson added this to the 1.7.4 milestone Aug 28, 2018
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants