Skip to content

docs: update how to generate sample config#10831

Closed
sspaink wants to merge 2 commits intomasterfrom
configurationupdate
Closed

docs: update how to generate sample config#10831
sspaink wants to merge 2 commits intomasterfrom
configurationupdate

Conversation

@sspaink
Copy link
Copy Markdown
Contributor

@sspaink sspaink commented Mar 16, 2022

Match what we have on the docs side: https://docs.influxdata.com/telegraf/v1.21/introduction/getting-started/#create-and-edit-the-configuration-file

Not exactly the same, I made this doc less wordy because it is just configuration and not a "getting started" like the website. I have no issue having them match exactly either though.

@telegraf-tiger telegraf-tiger bot added the docs Issues related to Telegraf documentation and configuration descriptions label Mar 16, 2022
@sspaink sspaink marked this pull request as ready for review March 21, 2022 15:24
@sspaink sspaink added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Mar 22, 2022
Copy link
Copy Markdown
Contributor

@Hipska Hipska left a comment

Choose a reason for hiding this comment

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

Note that the commands are also explained in other places:

**Generate a telegraf config file:**
`telegraf config > telegraf.conf`
**Generate config with only cpu input & influxdb output plugins defined:**
`telegraf --input-filter cpu --output-filter influxdb config`

These need to be updated as well..

@sspaink sspaink force-pushed the configurationupdate branch from 7678a7d to ec16b50 Compare March 24, 2022 20:43
@telegraf-tiger
Copy link
Copy Markdown
Contributor

@sspaink
Copy link
Copy Markdown
Contributor Author

sspaink commented Mar 24, 2022

After some discussion closing this because this should be an issue so that the following works:
telegraf config --input-filter cpu --output-filter influxdb

instead of telegraf --input-filter cpu --output-filter influxdb config

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

@Hipska
Copy link
Copy Markdown
Contributor

Hipska commented Mar 24, 2022

According to the changes you made here, I assumed the config command would become deprecated.

@sspaink
Copy link
Copy Markdown
Contributor Author

sspaink commented Mar 24, 2022

I originally was in favor of doing it that way so sorry for the confusion, but looking at it again using config does seem like a more standard CLI way of doing things using a command followed by flags instead of a flag followed by more flags.

@Hipska
Copy link
Copy Markdown
Contributor

Hipska commented Mar 25, 2022

That makes more sense indeed!

@sspaink sspaink deleted the configurationupdate branch June 30, 2022 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Issues related to Telegraf documentation and configuration descriptions ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants