system input plugin call lsb_release causing high cpu usage #5589
Closed
Description
Relevant telegraf.conf:
[[inputs.system]]
System info:
- Telegraf 1.10.0 (git: HEAD fe33ee8)
- Linux foobar 4.14.98+ Fix crash in Docker input plugin - Fixes #1195 #1200 Tue Feb 12 20:11:02 GMT 2019 armv6l GNU/Linux
- Raspbian GNU/Linux 9.8 (stretch)
- Raspberry Pi
Steps to reproduce:
- install and run telegraf on a raspberry pi
- watch cpu usage
Expected behavior:
cpu usage <5%
Actual behavior:
cpu usage ~25% caused by telegraf
Additional info:
Investigating the situation with atop
shows, that lsb_release
is called on every collection interval (10s by default), firing up a python interpreter each time.
Reading the docs for input.system I ask myself, why it is actually calling lsb_release
? input.system reads load, uptime, #cpus and #users, I don't get the point for running lsb_release
?
I would be nice to have this removed or at least to add an option to be able to turn this off.