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

telegraf multi tags type #7748

Closed
jeonsoh opened this issue Jun 26, 2020 · 1 comment · Fixed by #7751
Closed

telegraf multi tags type #7748

jeonsoh opened this issue Jun 26, 2020 · 1 comment · Fixed by #7751
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@jeonsoh
Copy link

jeonsoh commented Jun 26, 2020

Relevant telegraf.conf:

[[inputs.cpu]]
  percpu = true
  totalcpu = true
  collect_cpu_time = false
  report_active = false
  [inputs.cpu.tags]
    rule_id_1 = "1"
[[inputs.cpu]]
  percpu = true
  totalcpu = true
  collect_cpu_time = false
  report_active = false
  [inputs.cpu.tags]
    rule_id_1 = 2

System info:

telegraf-1.11.0
macOS 10.14.3

Steps to reproduce:

  1. add multi tags in telegraf config file.
  2. when I input the number type value 2 as a tag rule_id_1, It is not working well.
    it have to be below.
[inputs.cpu.tags]
    rule_id_1 = "2"

Expected behavior:

When I input the number type value as a tag, It have to work well, or I have to find out this at the guide

Actual behavior:

cpu,cpu=cpu-total,host=host,rule_id_1=1 usage_user=0.8016032064692215,usage_idle=98.19639278846982,usage_nice=0,usage_irq=0,usage_steal=0,usage_guest_nice=0,usage_system=0.8016032064692215,usage_iowait=0.20040080161730536,usage_softirq=0,usage_guest=0 1589453390000000000
cpu,cpu=cpu0,host=host,rule_id_1=1 usage_idle=98.19639278846982,usage_irq=0,usage_guest_nice=0,usage_iowait=0.20040080161730536,usage_softirq=0,usage_steal=0,usage_guest=0,usage_user=0.8016032064692215,usage_system=0.8016032064692215,usage_nice=0 1589453390000000000
cpu,cpu=cpu-total,host=host,rule_id_1=1 usage_iowait=0,usage_irq=0,usage_softirq=0,usage_steal=0.20000000000436557,usage_guest_nice=0,usage_user=0.8000000000174623,usage_system=0.8000000000174623,usage_idle=98.199999993667,usage_nice=0,usage_guest=0 1589453385000000000
cpu,cpu=cpu0,host=host,rule_id_1=1 usage_system=0.8000000000174623,usage_nice=0,usage_irq=0,usage_guest=0,usage_guest_nice=0,usage_user=0.8000000000174623,usage_idle=98.199999993667,usage_iowait=0,usage_softirq=0,usage_steal=0.20000000000436557 1589453385000000000
cpu,cpu=cpu-total,host=host usage_user=0.8000000000174623,usage_system=0.8000000000174623,usage_idle=98.199999993667,usage_steal=0.20000000000436557,usage_guest_nice=0,usage_nice=0,usage_iowait=0,usage_irq=0,usage_softirq=0,usage_guest=0 1589453385000000000
cpu,cpu=cpu0,host=host usage_system=0.8000000000174623,usage_nice=0,usage_steal=0.20000000000436557,usage_guest=0,usage_guest_nice=0,usage_user=0.8000000000174623,usage_idle=98.199999993667,usage_iowait=0,usage_irq=0,usage_softirq=0 1589453385000000000
cpu,cpu=cpu-total,host=host usage_idle=97.7955911850764,usage_irq=0,usage_steal=0,usage_user=1.0020040080294736,usage_system=1.0020040078836627,usage_nice=0,usage_iowait=0.20040080159860416,usage_softirq=0,usage_guest=0,usage_guest_nice=0 1589453380000000000
cpu,cpu=cpu0,host=host usage_system=1.0020040078836627,usage_nice=0,usage_iowait=0.20040080159860416,usage_irq=0,usage_guest=0,usage_user=1.0020040080294736,usage_idle=97.7955911850764,usage_softirq=0,usage_steal=0,usage_guest_nice=0 1589453380000000000

the tag rule_id_1 = 2 is not working.
And rule_id_1 = "1" is working well.

Additional info:

about multi tags -> https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#input-plugins

Is it your intended behavior? or a bug?
if the latter is true, Could I try to fix?

@danielnelson danielnelson added this to the 1.14.5 milestone Jun 26, 2020
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Jun 26, 2020
@danielnelson
Copy link
Contributor

Took a quick look and I think #7751 will take care of reporting this error.

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants