Skip to content

Fix plugin filters when using telegraf config #10888

@sspaink

Description

@sspaink

The following command currently doesn't work:
telegraf config --input-filter cpu --output-filter influxdb

Instead you have to use telegraf --input-filter cpu --output-filter influxdb config

Telegraf should be updated to have the command be at the beginning

--sample-config should probably be deprecated as well in favor of config

Related to: #10831

Steps to reproduce

Run telegraf config --input-filter cpu --output-filter influxdb
Nothing gets filtered

Expected behavior

Plugins get filtered

Actual behavior

Plugins aren't filtered

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behaviorhelp wantedRequest for community participation, code, contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions