-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite the Telegraf CLI #11316
Comments
next steps: flush out all the details of what commands, subcommands, and test matrix for each. |
We'll want to make sure people who have scripts that are using the current commands won't have too many issues with any rewrite. |
Telegraf is now using urfave/cli, the next step is to begin migrating to use commands over flags. Breaking out the tasks into separate issues:
I am not sure about adding |
Future discussion points:
|
As we are not planning on doing a Telegraf 2.x at this time anymore, I am closing breaking changes issues and PRs. While we have interest in making these improvements we currently, and for the foreseeable future do not have the capital to maintain two major versions while also supporting our users at the same level. |
Feature Request
Opening a feature request kicks off a discussion.
Proposal:
The current CLI options and flags have naturally grown over the 6-7 years as the capabilities of Telegraf have grown. However, there are some best practices and consistencies that Telegraf's CLI could use. For example, having Telegraf follow the format
telegraf <subcommand> <options>
for all operations.Internally, options are duplicated across declaration + documentation and it is commonly out of date missing values, or entirely wrong.
In doing this, the Telegraf binary can also grow new features more easily and have them contained to specific subcommands.
Desired behavior:
I would be a big fan of implementing this with urfave/cli as it is lightweight and well documented.
As a part of this effort each option will need to be tested to ensure operation across Windows, macOS, and Linux/BSD environments.
See #9835, #10356 #8854 for other related CLI issues
The text was updated successfully, but these errors were encountered: