Telegraf is a plugin-driven server agent for collecting and reporting metrics and events from databases, systems, andIoT sensors. It has over 200+ input plugins that cover a wide range of sources. However, to meet nearly any use case, it provides the Exec and Execd input plugins. The Exec plugin allows users to run arbitrary commands at each collection interval while the Execd plugin runs an external command as a long-running daemon. These plugins provide immense flexibility and freedom for collecting data from various sources.