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

taginclude & tagexclude ignore global_tags in 1.9 #5151

Closed
tuukkamustonen opened this issue Dec 17, 2018 · 0 comments · Fixed by #5152
Closed

taginclude & tagexclude ignore global_tags in 1.9 #5151

tuukkamustonen opened this issue Dec 17, 2018 · 0 comments · Fixed by #5152
Assignees
Labels
bug unexpected problem or unintended behavior regression something that used to work, but is now broken
Milestone

Comments

@tuukkamustonen
Copy link

tuukkamustonen commented Dec 17, 2018

Relevant telegraf.conf:

[global_tags]
  region = "eu-west-1"
  environment = "prod"
  component = "client_api"

[[inputs.mem]]
  fieldpass = ["free", "available"]
  taginclude = ["AutoScalingGroupName"]
  [inputs.mem.tags]
    AutoScalingGroupName = "foobar"

I am outputting to CloudWatch, but I think that's irrelevant here.

System info:

$ uname -a
Linux ip-xxx 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
$ dpkg -l | grep -i telegraf
ii  telegraf                      1.9.1-1                        amd64        Plugin-driven server agent for reporting metrics into InfluxDB.

Steps to reproduce:

Run with given configuration.

Expected behavior:

taginclude is supposed to only leave AutoScalingGroupName in plugin's tags. This worked in previous versions (at least in 1.8.3) but no longer in 1.9 - all global tags are included despite above configuration.

Actual behavior:

All tags (AutoScalingGroupName, region, environment, component) are included in output.

Additional info:

Even tried excluding global tags with:

tagexclude = ["region", "environment", "component"]

...but that didn't have any effect, either.

@danielnelson danielnelson self-assigned this Dec 17, 2018
@danielnelson danielnelson added bug unexpected problem or unintended behavior regression something that used to work, but is now broken labels Dec 17, 2018
@danielnelson danielnelson added this to the 1.9.2 milestone Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior regression something that used to work, but is now broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants