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

pleaase fix problem with gopsutil bug #1578

Closed
yosefy opened this issue Aug 3, 2016 · 2 comments
Closed

pleaase fix problem with gopsutil bug #1578

yosefy opened this issue Aug 3, 2016 · 2 comments

Comments

@yosefy
Copy link

yosefy commented Aug 3, 2016

it shows wrong metrics now.
shirou/gopsutil@28640e5

also there is typo in code:
in
https://github.com/influxdata/telegraf/blob/master/plugins/inputs/procstat/spec_processor.go:

if err == nil {
    fields[prefix+"read_count"] = io.ReadCount
    fields[prefix+"write_count"] = **io.WriteCount**
    fields[prefix+"read_bytes"] = io.ReadBytes
    fields[prefix+"write_bytes"] = **io.WriteCount**

problem looks like that:
procstat,host=pa-live-publish21,pidfile=/var/run/WowzaStreamingEngineManager.pid,process_name=java cpu_time_guest=0,cpu_time_guest_nice=0,cpu_time_idle=0,cpu_time_iowait=0,cpu_time_irq=0,cpu_time_nice=0,cpu_time_soft_irq=0,cpu_time_steal=0,cpu_time_stolen=0,cpu_time_system=3148.26,cpu_time_user=6144.58,involuntary_context_switches=3i,memory_rss=94728192i,memory_swap=0i,memory_vms=5102858240i,num_fds=57i,num_threads=30i,pid=25450i,read_bytes=0i,read_count=14372i,voluntary_context_switches=6i,write_bytes=105i,write_count=105i 1470250276000000000

shirou/gopsutil@28640e5

thanks

@yosefy
Copy link
Author

yosefy commented Aug 3, 2016

also it wont output io metrics for process when running as telegraf (not root ) user
thanks

@sparrc
Copy link
Contributor

sparrc commented Aug 5, 2016

dupe of #1584

@sparrc sparrc closed this as completed Aug 5, 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

No branches or pull requests

2 participants