-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
input.sysstat always returns pct_pct_Fields in pct_util, so a "pct_" too much #4356
Comments
Thanks for submitting this, can you by any chance see if sysstat is outputting metrics with two percent signs ( |
As i see it, only "one" percent sign. sar output: |
With the default settings my cpu_util measurements have a single pct_:
@StefanSa Can you run these commands, adjusting the path to sadc/sadf as needed:
|
@danielnelson
the same on a centos machine:
|
the same problem! How to fix it @danielnelson . thanks |
sdf cmd result contains two %, so after replaced, the field prefix with pct_pct sdf output
System info:
Bug telegraf/plugins/inputs/sysstat/sysstat.go Line 338 in d260437
|
why it still happen now? (linux x64.tar.gz) `$ usr/bin/telegraf --config etc/telegraf/telegraf.conf --input-filter sysstat --test
` |
@pythonwood try using a nightly build the fix has been merged, but is scheduled for release in 1.12 |
Relevant telegraf.conf:
[[inputs.sysstat]]
sadc_path = "/usr/lib/sysstat/sadc" # required
activities = ["DISK"]
[inputs.sysstat.options]
-C = "cpu"
-B = "paging"
-b = "io"
"-n ALL" = "network"
"-P ALL" = "per_cpu"
-q = "queue"
-r = "mem_util"
-S = "swap_util"
-u = "cpu_util"
-d = "disk"
-v = "inode"
-W = "swap"
-w = "task"
System info:
Telegraf v1.7.0-1
Ubuntu Xenial
Steps to reproduce:
telegraf --config telegraf.conf --input-filter sysstat --test
Expected behavior:
Fields in cpu_util, for example, pct_idle
Actual behavior:
Instead of pct_idle, pct_pct_idle so a "pct_" too much
Additional info:
> cpu_util,device=all,host=vpn,hostgroup=IT,role=VPN-Access pct_pct_idle=99.49,pct_pct_iowait=0,pct_pct_nice=0,pct_pct_steal=0,pct_pct_system=0,pct_pct_user=0.51 1530183608000000000
The text was updated successfully, but these errors were encountered: