Skip to content
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

Issue #3911: Expose telegraf agent version in internal module #4828

Merged

Conversation

kevinconaway
Copy link
Contributor

Required for all PRs:

  • [ Y] Signed CLA.
  • [ NA] Associated README.md updated.
  • [ Y] Has appropriate unit tests.

@danielnelson This PR exposes the agent version in the internal module per our conversation in #3911

I decided to separate this in to two PRs, one to expose the version and then one to use it, in case there is back and forth on how the version is initially exposed.

@glinton glinton added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Oct 8, 2018
@glinton glinton added this to the 1.9.0 milestone Oct 8, 2018
@danielnelson
Copy link
Contributor

Instead of the "full version", I think we should set just the version. This will give us a bit more flexibility in how we display it later on.

For references, here are some full versions:

unknown (git: master 25d40c28)
1.8.1 (git: HEAD ae9efb2f)

Short version:

unknown
1.8.1

User-Agent could then be:

Telegraf unknown
Telegraf 1.8.1

@kevinconaway
Copy link
Contributor Author

@danielnelson I made that change. There is some small duplication in determining the "short version | unknown" but I thought that preferable to rewriting formatFullVersion to reduce that duplication.

@danielnelson danielnelson merged commit 7bb2192 into influxdata:master Oct 9, 2018
rgitzel pushed a commit to rgitzel/telegraf that referenced this pull request Oct 17, 2018
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
dupondje pushed a commit to dupondje/telegraf that referenced this pull request Apr 22, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants