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

-test doesn't output correct stats #1012

Closed
rubycut opened this issue Apr 12, 2016 · 0 comments · Fixed by #1057
Closed

-test doesn't output correct stats #1012

rubycut opened this issue Apr 12, 2016 · 0 comments · Fixed by #1057

Comments

@rubycut
Copy link
Contributor

rubycut commented Apr 12, 2016

-test option doesn't take global_tags into consideration, only -debug does.

I have this in config:

[global_tags]
role = "web"

If I run it with:

telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d -test

Output is:

> cpu,cpu=cpu0 time_guest=0,time_guest_nice=0,time_idle=221916.01,time_iowait=384.77,time_irq=0.33,time_nice=8.16,time_softirq=81154.88,time_steal=0,time_sy
stem=39475.9,time_user=260756.14 1460474740095444774

role tag is not visible, neither is host tag but if I run it with -debug:

cpu,cpu=cpu0,host=xxx,role=web time_guest=0,time_guest_nice=0,time_idle=221930.96,time_iowait=384.77,time_irq=0.33,time_nice=8.16,time_softirq=81166.33,time_steal=0,time_system=39480.63,time_user=260789.54 1460474805015248539
sparrc added a commit that referenced this issue Apr 19, 2016
sparrc added a commit that referenced this issue Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant