Skip to content

Improve or replace --test #10080

@srebhan

Description

@srebhan

Problem

The telegraf command line option --test is often misunderstood especially in that it does not send any data to the outputs but only to stdout. Therefore new users wonder why they don't see any data in their configured database(s) as they meant to use --once.

Proposal:

To improve the awareness for the user about the actual behavior when using --test I see the following options

  1. Keep --test and add a (maybe red) output saying: "NOTE: Telegraf running in test mode, no data will be sent to the outputs!" or similar.
  2. Add a --dry-run option disabling the output plugins. Used together with --once it resembles the present --test option. We can then remove --test. Additionally, the new option allows to run multiple gather cycles or listen for inputs with outputs disabled.
  3. Like 2 with the additional warning of 1.

What is your opinion on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for new plugin and for new features to existing pluginsrfcRequest for comment - larger issues that require clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions