Skip to content

feat(config): Add default stdout output plugin#19219

Open
calvinmachado20 wants to merge 6 commits into
influxdata:masterfrom
calvinmachado20:feature/create_default_output_plugin
Open

feat(config): Add default stdout output plugin#19219
calvinmachado20 wants to merge 6 commits into
influxdata:masterfrom
calvinmachado20:feature/create_default_output_plugin

Conversation

@calvinmachado20

@calvinmachado20 calvinmachado20 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Addresses open issue: #16718

Modern applications use an approach called zero configuration, in which the default configuration file is 100% valid.

Today, telegraf takes a more classical approach, requiring the user to customize configuration. Otherwise the application crashes. That's an awful out of the box experience.

Instead of bombing out with generic parse error messages on the stock configuration file, telegraf should automatically set outputs.file to ["stdout"].

By the way, the default configuration file has many gaps in terms of failing to mention the default configuration, for about half of the assorted fields. Many of the fields fail to nest comments, further complicating the default behavior.

The documentation occasionally hints at a need to customize outputs, but that's still a far cry from zeroconf.

Expected behavior

Output to stdout by default, so that the telegraf config default configuration file finally becomes 100% valid.

Checklist

Related issues

resolves #16718

@telegraf-tiger telegraf-tiger Bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Jul 3, 2026
@calvinmachado20

Copy link
Copy Markdown
Contributor Author

@srebhan requesting a review on this one

@calvinmachado20

Copy link
Copy Markdown
Contributor Author

@skartikey would appreciate a review on this one

@skartikey skartikey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@calvinmachado20 Thanks! Please taka a look at comments.

Comment thread cmd/telegraf/telegraf_config_test.go
Comment thread plugins/outputs/file/sample.conf Outdated
@skartikey skartikey changed the title feat(config): Adding default stdout output plugin feat(config): Add default stdout output plugin Jul 13, 2026
@skartikey skartikey self-assigned this Jul 13, 2026
@calvinmachado20

Copy link
Copy Markdown
Contributor Author

@skartikey thanks for reviewing this, ive pushed the updates accordingly

@telegraf-tiger

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agent area/configuration feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output to stdout by default

3 participants