Skip to content

Ability to ignore extra fileds in TOML config (or missing fields in plugins) #18647

@mialinx

Description

@mialinx

Use Case

To monitor our data plane, we use Telegraf with several dozen self-written plug-ins.
Plugins are supported by several teams; some of the plugins are used by several teams at once.

In such a situation, we often have problems with the version mismatch between plugins and their configs
(the configuration turns out to be newer than the plug-ins themselves),
which makes it impossible to launch telegraf.

The ideal solution, of course, would be to avoid such situations. But from the point of view of SRE,
it would be very convenient to make Telegraf more tolerant of unnecessary fields in the config,
to ensure forward compatibility with newer versions of configs.

Expected behavior

We have an option in plugin config that is not yet supported by the plugin code.
Telegraf starts, and the plugin just ignores extra settings.

Actual behavior

Telegraf fails to start, reporting the configuration specified the fields %q, but they were not used error

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for new plugin and for new features to existing plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions