Skip to content

telegraf swallowing panics #2341

@phemmer

Description

@phemmer

Bug report

Relevant telegraf.conf:

System info:

[Include Telegraf version, operating system name, and other relevant details]
Telegraf current master (738cbbd)

Relevant telegraf.conf:

[[outputs.file]]
files = ["stdout"]

[[inputs.cpu]]

Steps to reproduce:

  1. call panic("foo") from within a plugin's Gather(). For example the Gather() method on the system/cpu plugin
  2. telegraf -config /tmp/telegraf.conf -test

Expected behavior:

* Plugin: inputs.cpu, Collection 1
big nasty panic message here

Actual behavior:

* Plugin: inputs.cpu, Collection 1

Use case: [Why is this important (helps with prioritizing requests)]

I was trying to develop on a plugin, but whenever I ran telegraf, absolutely no output was produced. Eventually I figured out that my code was causing a panic, but it was rather difficult to figure out because my panic was being thrown away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions