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

[output.wavefront] Added truncate_tags setting #7503

Merged
merged 1 commit into from
May 13, 2020
Merged

[output.wavefront] Added truncate_tags setting #7503

merged 1 commit into from
May 13, 2020

Conversation

prydin
Copy link
Contributor

@prydin prydin commented May 13, 2020

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

Fixes #7447

The total length of tag key + tag value isn't allowed to exceed 254 characters when sending metrics to Wavefront. By default, these metrics are discarded by wavefront. The new truncate_tags flag in the configuration file causes the Wavefront output to truncate the tag value so that the length of the key + value never exceeds 254. If the tag key is longer than 254 characters, the metric point is dropped and a warning is logged.

The truncate_tags flag is turned off by default to ensure backwards compatibility.

@danielnelson danielnelson added this to the 1.15.0 milestone May 13, 2020
@danielnelson danielnelson merged commit 2375607 into influxdata:master May 13, 2020
@danielnelson
Copy link
Contributor

One thing to consider is if we think the new option should remain long term, or if we want to push users towards truncate being true and eventually remove the setting entirely. Depending on what you think it may be worth adding a log message to suggest setting the option.

rhajek pushed a commit to bonitoo-io/telegraf that referenced this pull request Jul 13, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Wavefront Output Plugin] Allow option to truncate tag value if it is too long
2 participants