influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.57k stars 5.56k forks source link

feat: allow input.exec plugins to enable the debug setting #15784

Open ltadeut opened 1 month ago

ltadeut commented 1 month ago

Use Case

I am trying to debug an exec command run that crashes with a stack trace. I can't see the contents of the stack trace due to the truncation performed by Exec.

Exec has a debug flag internally that would allow me to skip truncation and see the full stack trace, but there's no way to set that option in the configuration file.

Expected behavior

Exec should support a debug field in its config that would set the plugin's internal debug flag.

Actual behavior

There's no option to set the debug flag.

Additional info

No response

srebhan commented 3 weeks ago

Unfortunately the PR fixing this was abandoned...