Collecting Ubuntu Host, OS Version, and Kernel Info?

Hi!

Is there a way or an input plugin for Telegraf to collect the following info on the host? Essentially want anything that’s part of the /etc/lsb-release file.

  • DISTRIB_ID
  • OS version
  • Code Name
  • OS Family
  • Kernal
  • Mac Address

Hi,

There is no input plugin to my knowledge that would collect all of these datapoints out of the box. What I would suggest you use is the exec plugin to collect the specific metrics and datapoints you want as a script and then telegraf can run that script and send it to whatever outputs you want.

Kernel
Mac Address

These won’t be in /etc/lsb-release, but with a self-written script, you can collect any and all the points you are after!